Skip to content
Myr

[vim] Empty out $FZF_DEFAULT_COMMAND before unletting it

Before adoption: this commit came in with the history the project adopted, so no landing records it.

For Vim 8.0.1831 and below * https://github.com/vim/vim/issues/1116 Fix https://github.com/junegunn/fzf.vim/issues/1301

authored by Junegunn Choi · committed by Junegunn Choi · parent 179993f · Browse files · 1 file+2 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−1 removed

  • other:+2 added−1 removed

1 file+2 added−1 removed

modified:plugin/fzf.vim+2 added-1 removed
517 unmodified lines
518 if len(source_command)519 if len(prev_default_command)520 let $FZF_DEFAULT_COMMAND = prev_default_command521 else522 let $FZF_DEFAULT_COMMAND = ''522 execute 'unlet $FZF_DEFAULT_COMMAND'523 silent! execute 'unlet $FZF_DEFAULT_COMMAND'524 endif525 endif526 let [&shell, &shellslash, &shellcmdflag, &shellxquote] = [shell, shellslash, shellcmdflag, shellxquote]527endtry
521 unmodified lines