Skip to content

Commit

Permalink
[vim] Empty out $FZF_DEFAULT_COMMAND before unletting it
Browse files Browse the repository at this point in the history
For Vim 8.0.1831 and below
* vim/vim#1116

Fix junegunn/fzf.vim#1301
  • Loading branch information
junegunn committed Oct 10, 2021
1 parent 179993f commit 2736a2f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugin/fzf.vim
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,8 @@ finally
if len(prev_default_command)
let $FZF_DEFAULT_COMMAND = prev_default_command
else
execute 'unlet $FZF_DEFAULT_COMMAND'
let $FZF_DEFAULT_COMMAND = ''
silent! execute 'unlet $FZF_DEFAULT_COMMAND'
endif
endif
let [&shell, &shellslash, &shellcmdflag, &shellxquote] = [shell, shellslash, shellcmdflag, shellxquote]
Expand Down

0 comments on commit 2736a2f

Please sign in to comment.