fzf-vim: don't open Vim if no file is selected

This commit is contained in:
2019-12-30 03:14:10 -05:00
parent 2a60472dcb
commit 0194419465
2 changed files with 5 additions and 1 deletions

View File

@@ -1,3 +1,6 @@
function fzf-vim
fzf | xargs $EDITOR
set file (fzf)
if test ! -z "$file"
$EDITOR $file
end
end