mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2024-11-21 20:35:11 +00:00
parent
9c94f9c3d0
commit
ca3f6181d7
@ -4468,13 +4468,16 @@ func (t *Terminal) Loop() error {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for ; linesToMove > 0; linesToMove-- {
|
for i := 0; i < linesToMove; i++ {
|
||||||
cy := t.cy
|
cy, offset := t.cy, t.offset
|
||||||
t.vset(cy + direction)
|
t.vset(cy + direction)
|
||||||
t.constrain()
|
t.constrain()
|
||||||
if cy == t.cy ||
|
if cy == t.cy {
|
||||||
direction > 0 && t.offset >= maxOffset ||
|
break
|
||||||
direction < 0 && t.offset <= minOffset {
|
}
|
||||||
|
if i > 0 && (direction > 0 && t.offset > maxOffset ||
|
||||||
|
direction < 0 && t.offset < minOffset) {
|
||||||
|
t.cy, t.offset = cy, offset
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user