summaryrefslogtreecommitdiffstats
path: root/src/terminal.go
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2023-11-12 21:41:34 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2023-11-12 21:41:34 +0900
commit84bb350b146c0cba6eab616c2e899441c6a43c77 (patch)
treee2fa898b3a7817167bc94a079a0092b691363994 /src/terminal.go
parent38e3694d1ca5f138f26fbbffb7c0122b58eee8dc (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.go1
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--