Fix mouse click on --reverse mode
This commit is contained in:
parent
65c1b53275
commit
f58a53a001
1
fzf
1
fzf
@ -954,6 +954,7 @@ class FZF
|
|||||||
case event
|
case event
|
||||||
when :click, :release
|
when :click, :release
|
||||||
x, y, shift = val.values_at :x, :y, :shift
|
x, y, shift = val.values_at :x, :y, :shift
|
||||||
|
y = @reverse ? (C.lines - 1 - y) : y
|
||||||
if y == cursor_y
|
if y == cursor_y
|
||||||
cursor = [0, [input.length, x - 2].min].max
|
cursor = [0, [input.length, x - 2].min].max
|
||||||
elsif x > 1 && y <= max_items
|
elsif x > 1 && y <= max_items
|
||||||
|
Loading…
Reference in New Issue
Block a user