mirror of
https://github.com/junegunn/fzf.git
synced 2025-08-06 15:12:05 -07:00
@@ -4422,6 +4422,7 @@ func (t *Terminal) Loop() error {
|
|||||||
direction = 1
|
direction = 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
moved := false
|
||||||
for linesToMove > 0 {
|
for linesToMove > 0 {
|
||||||
currentItem := t.currentItem()
|
currentItem := t.currentItem()
|
||||||
if currentItem == nil {
|
if currentItem == nil {
|
||||||
@@ -4430,11 +4431,15 @@ func (t *Terminal) Loop() error {
|
|||||||
|
|
||||||
itemLines, _ := t.numItemLines(currentItem, maxItems)
|
itemLines, _ := t.numItemLines(currentItem, maxItems)
|
||||||
linesToMove -= itemLines
|
linesToMove -= itemLines
|
||||||
|
if moved && linesToMove < 0 {
|
||||||
|
break
|
||||||
|
}
|
||||||
cy := t.cy
|
cy := t.cy
|
||||||
t.vmove(direction, false)
|
t.vmove(direction, false)
|
||||||
if cy == t.cy {
|
if cy == t.cy {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
moved = true
|
||||||
}
|
}
|
||||||
req(reqList)
|
req(reqList)
|
||||||
case actOffsetUp, actOffsetDown:
|
case actOffsetUp, actOffsetDown:
|
||||||
|
Reference in New Issue
Block a user