Fix invalid return when query string is empty

pull/4/head
Junegunn Choi 11 years ago
parent 0df647b2a7
commit c46dad465f

2
fzf

@ -514,7 +514,7 @@ begin
ctrl(:d) => proc { exit 1 if input.empty? }, ctrl(:d) => proc { exit 1 if input.empty? },
ctrl(:m) => proc { ctrl(:m) => proc {
@mtx.synchronize do @mtx.synchronize do
got = @matches.fetch(@vcursor, [])[0] got = [*@matches.fetch(@vcursor, [])][0]
end end
exit 0 exit 0
}, },

Loading…
Cancel
Save