Fix mouse click on --reverse mode

This commit is contained in:
Junegunn Choi 2014-06-15 04:32:21 +09:00
parent 65c1b53275
commit f58a53a001

1
fzf
View File

@ -954,6 +954,7 @@ class FZF
case event
when :click, :release
x, y, shift = val.values_at :x, :y, :shift
y = @reverse ? (C.lines - 1 - y) : y
if y == cursor_y
cursor = [0, [input.length, x - 2].min].max
elsif x > 1 && y <= max_items