Skip to content
Myr

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

Before adoption: this commit came in with the history the project adopted, so no landing records it.

https://github.com/junegunn/fzf/issues/3498#issuecomment-1806651174

authored by Junegunn Choi · committed by Junegunn Choi · parent 38e3694 · Browse files · 1 file+1 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Trailers

  • https: //github.com/junegunn/fzf/issues/3498#issuecomment-1806651174

Diff stats

1 file+1 added−0 removed

  • other:+1 added−0 removed

1 file+1 added−0 removed

modified:src/terminal.go+1 added
3308 unmodified lines
3309 scrollPreviewBy(t.pwindow.Height() / 2)3310 }3311 case actBeginningOfLine:3312 t.cx = 03313 t.xoffset = 03314 case actBackwardChar:3315 if t.cx > 0 {3316 t.cx--3317 }
735 unmodified lines