Skip to content
Myr

Fix mouse click on --reverse mode

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Junegunn Choi · committed by Junegunn Choi · parent 65c1b53 · Browse files · 1 file+1 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−0 removed

  • other:+1 added−0 removed

1 file+1 added−0 removed

modified:fzf+1 added
952 unmodified lines
953 event = val[:event]954 case event955 when :click, :release956 x, y, shift = val.values_at :x, :y, :shift957 y = @reverse ? (C.lines - 1 - y) : y958 if y == cursor_y959 cursor = [0, [input.length, x - 2].min].max960 elsif x > 1 && y <= max_items961 tv = max_items - y - 1
231 unmodified lines