fzf-vim: don't open Vim if no file is selected
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
function fzf-vim
|
||||
fzf | xargs $EDITOR
|
||||
set file (fzf)
|
||||
if test ! -z "$file"
|
||||
$EDITOR $file
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user