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'
This commit is contained in:
Junegunn Choi 2024-07-03 22:06:17 +09:00
parent e1fcdbc337
commit 035b0be29f
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627

View File

@ -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: