From 84bb350b146c0cba6eab616c2e899441c6a43c77 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Sun, 12 Nov 2023 21:41:34 +0900 Subject: [PATCH] Reset horizontal offset of the prompt on 'beginning-of-line' https://github.com/junegunn/fzf/issues/3498#issuecomment-1806651174 --- src/terminal.go | 1 + 1 file changed, 1 insertion(+) diff --git a/src/terminal.go b/src/terminal.go index 1802e44..2e6e24b 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--