mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2024-12-23 19:39:07 +00:00
Fix invalid return when query string is empty
This commit is contained in:
parent
0df647b2a7
commit
c46dad465f
2
fzf
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…
Reference in New Issue
Block a user