Reset horizontal offset of the prompt on 'beginning-of-line'

https://github.com/junegunn/fzf/issues/3498#issuecomment-1806651174
This commit is contained in:
Junegunn Choi 2023-11-12 21:41:34 +09:00
parent 38e3694d1c
commit 84bb350b14
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627

View File

@ -3310,6 +3310,7 @@ func (t *Terminal) Loop() {
}
case actBeginningOfLine:
t.cx = 0
t.xoffset = 0
case actBackwardChar:
if t.cx > 0 {
t.cx--