summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2015-01-10 12:26:11 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2015-01-10 12:26:11 +0900
commitb8a9861f9530ec63467c062f974e93546240fb53 (patch)
tree1e7fc5044e62292508ffe4585c161ca281956102
parent188c90bf2564adcade3eb283ecf72fa74b7dc6dd (diff)
Fix double click on an empty row not to close fzf
-rw-r--r--src/terminal.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/terminal.go b/src/terminal.go
index 73bf396a..c9db8ff9 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 {