summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2013-11-03 22:49:12 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2013-11-03 22:49:12 +0900
commitc46dad465fdfeb9b33cb61ef04727423fb7bcb72 (patch)
tree8378b755a225872ece3cdf3700f54c78a7c8254d
parent0df647b2a7ac7279e04d9312f612171f4e57091c (diff)
Fix invalid return when query string is empty
-rwxr-xr-xfzf2
1 files changed, 1 insertions, 1 deletions
diff --git a/fzf b/fzf
index ca9a232c..c915a72d 100755
--- a/fzf
+++ b/fzf
@@ -514,7 +514,7 @@ begin
ctrl(:d) => proc { exit 1 if input.empty? },
ctrl(:m) => proc {
@mtx.synchronize do
- got = @matches.fetch(@vcursor, [])[0]
+ got = [*@matches.fetch(@vcursor, [])][0]
end
exit 0
},