Fix invalid return when query string is empty

This commit is contained in:
Junegunn Choi 2013-11-03 22:49:12 +09:00
parent 0df647b2a7
commit c46dad465f

2
fzf
View File

@ -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
},