diff options
| author | Junegunn Choi <junegunn.c@gmail.com> | 2024-07-03 22:06:17 +0900 |
|---|---|---|
| committer | Junegunn Choi <junegunn.c@gmail.com> | 2024-07-03 22:06:17 +0900 |
| commit | 035b0be29fabae3437d89db89ac1303fcc768781 (patch) | |
| tree | 9bae716d99612023fc03e2ba6c272108ab654054 /src | |
| parent | e1fcdbc3372087d80ebfd30c3c433881b9535b38 (diff) | |
| download | fzf-035b0be29fabae3437d89db89ac1303fcc768781.tar.gz | |
Adjust offset immediately after 'first', 'last', and 'pos'
seq 100 | fzf --multi --sync --bind 'result:last+transform:for _ in $(seq 10); do echo -n "+select+down"; done'
Diffstat (limited to 'src')
| -rw-r--r-- | src/terminal.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/terminal.go b/src/terminal.go index abe30a49..c97445bd 100644 --- a/src/terminal.go +++ b/src/terminal.go @@ -4301,9 +4301,11 @@ func (t *Terminal) Loop() error { } case actFirst: t.vset(0) + t.constrain() req(reqList) case actLast: t.vset(t.merger.Length() - 1) + t.constrain() req(reqList) case actPosition: if n, e := strconv.Atoi(a.a); e == nil { @@ -4313,6 +4315,7 @@ func (t *Terminal) Loop() error { n += t.merger.Length() } t.vset(n) + t.constrain() req(reqList) } case actPut: |
