From f58a53a001732a0e753cef08fe43b4dc5abb518c Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Sun, 15 Jun 2014 04:32:21 +0900 Subject: [PATCH] Fix mouse click on --reverse mode --- fzf | 1 + 1 file changed, 1 insertion(+) diff --git a/fzf b/fzf index 6266461..f51ea05 100755 --- a/fzf +++ b/fzf @@ -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