From b8a9861f9530ec63467c062f974e93546240fb53 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Sat, 10 Jan 2015 12:26:11 +0900 Subject: [PATCH] Fix double click on an empty row not to close fzf --- src/terminal.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/terminal.go b/src/terminal.go index 73bf396..c9db8ff 100644 --- a/src/terminal.go +++ b/src/terminal.go @@ -544,7 +544,9 @@ func (t *Terminal) Loop() { // Double-click if my >= 2 { t.cy = my - 2 - req(REQ_CLOSE) + if t.listIndex(t.cy) < t.merger.Length() { + req(REQ_CLOSE) + } } } else if me.Down { if my == 0 && mx >= 0 {