Skip to content
Myr

Adjust offset immediately after 'first', 'last', and 'pos'

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

seq 100 | fzf --multi --sync --bind 'result:last+transform:for _ in $(seq 10); do echo -n "+select+down"; done'

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

State

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

Diff stats

1 file+3 added−0 removed

  • other:+3 added−0 removed

1 file+3 added−0 removed

modified:src/terminal.go+3 added
4299 unmodified lines
4300 req(reqList, reqInfo)4301 }4302 case actFirst:4303 t.vset(0)4304 t.constrain()4305 req(reqList)4306 case actLast:4307 t.vset(t.merger.Length() - 1)4308 t.constrain()4309 req(reqList)4310 case actPosition:4311 if n, e := strconv.Atoi(a.a); e == nil {4312 if n > 0 {
1 unmodified line
4314 } else if n < 0 {4315 n += t.merger.Length()4316 }4317 t.vset(n)4318 t.constrain()4319 req(reqList)4320 }4321 case actPut:4322 str := []rune(a.a)
698 unmodified lines