mirror of
https://github.com/junegunn/fzf.git
synced 2025-08-01 20:52:06 -07:00
Fix invalid return when query string is empty
This commit is contained in:
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
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user