mirror of
https://github.com/junegunn/fzf.git
synced 2025-08-03 13:42:11 -07:00
Fix mouse click on --reverse mode
This commit is contained in:
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
|
||||||
|
Reference in New Issue
Block a user