diff options
author | Junegunn Choi <junegunn.c@gmail.com> | 2023-11-12 21:41:34 +0900 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2023-11-12 21:41:34 +0900 |
commit | 84bb350b146c0cba6eab616c2e899441c6a43c77 (patch) | |
tree | e2fa898b3a7817167bc94a079a0092b691363994 /src/terminal.go | |
parent | 38e3694d1ca5f138f26fbbffb7c0122b58eee8dc (diff) |
Reset horizontal offset of the prompt on 'beginning-of-line'
https://github.com/junegunn/fzf/issues/3498#issuecomment-1806651174
Diffstat (limited to 'src/terminal.go')
-rw-r--r-- | src/terminal.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/terminal.go b/src/terminal.go index 1802e446..2e6e24b6 100644 --- a/src/terminal.go +++ b/src/terminal.go @@ -3310,6 +3310,7 @@ func (t *Terminal) Loop() { } case actBeginningOfLine: t.cx = 0 + t.xoffset = 0 case actBackwardChar: if t.cx > 0 { t.cx-- |