mirror of
https://github.com/junegunn/fzf.git
synced 2026-10-14 00:49:04 +08:00
Fix offset-up and offset-down with --layout=reverse-list
Related: 3df06a1c68
This commit is contained in:
1 parent
d19ce0ad8d
commit
dd46a256c0
1 file changed
+2
-2
+2
-2
@@ -6339,7 +6339,7 @@ func (t *Terminal) Loop() error {
|
|||||||
if a.t == actOffsetDown {
|
if a.t == actOffsetDown {
|
||||||
diff = -1
|
diff = -1
|
||||||
}
|
}
|
||||||
if t.layout == layoutReverse {
|
if t.layout != layoutDefault {
|
||||||
diff *= -1
|
diff *= -1
|
||||||
}
|
}
|
||||||
t.offset += diff
|
t.offset += diff
|
||||||
@@ -6347,7 +6347,7 @@ func (t *Terminal) Loop() error {
|
|||||||
t.constrain()
|
t.constrain()
|
||||||
if before != t.offset {
|
if before != t.offset {
|
||||||
t.offset = before
|
t.offset = before
|
||||||
if t.layout == layoutReverse {
|
if t.layout != layoutDefault {
|
||||||
diff *= -1
|
diff *= -1
|
||||||
}
|
}
|
||||||
t.vmove(diff, false)
|
t.vmove(diff, false)
|
||||||
|
|||||||
Reference in new issue
Block a user