Open btbf opened 4 months ago
gum version v0.14.1 (657c76e)
---
osname : Darwin
kernel : 23.2.0
machine : arm64
version : Darwin Kernel Version 23.2.0
Reproduction example:
gum input --placeholder '谷歌视频模型 Veo | Hello World!!!'
Caught panic:
runtime error: slice bounds out of range [:42] with capacity 36
Restoring terminal...
goroutine 1 [running]:
runtime/debug.Stack()
/opt/hostedtoolcache/go/1.22.3/x64/src/runtime/debug/stack.go:24 +0x64
runtime/debug.PrintStack()
/opt/hostedtoolcache/go/1.22.3/x64/src/runtime/debug/stack.go:16 +0x1c
github.com/charmbracelet/bubbletea.(*Program).Run.func1()
this bug seems to be in bubbles.
we are kinda mixing the length of the string vs the uniseg length
There are two issues observed:
Issue 1 When the following command is executed in the shell, there is no response:
Issue 2 When the following command is executed in the shell and the initial value set in the
--value
parameter is completely deleted using the backspace key, an error occurs:Error Details
OS:Ubuntu22.0 Gum:0.14.0