mirror of
https://github.com/junegunn/fzf.git
synced 2026-10-12 08:00:20 +08:00
Fix error when --query contains wide-length characters
This commit is contained in:
1 parent
1476fc7f3b
commit
448132c46c
2 files changed
+9
-1
No files matched your search
+1
-1
@@ -86,7 +86,7 @@ func NewTerminal(opts *Options, eventBox *util.EventBox) *Terminal {
|
||||
prompt: opts.Prompt,
|
||||
tac: opts.Sort == 0,
|
||||
reverse: opts.Reverse,
|
||||
cx: displayWidth(input),
|
||||
cx: len(input),
|
||||
cy: 0,
|
||||
offset: 0,
|
||||
yanked: []rune{},
|
||||
|
||||
Reference in new issue
Block a user