diff options
author | Junegunn Choi <junegunn.c@gmail.com> | 2021-10-10 20:16:59 +0900 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2021-10-10 20:19:48 +0900 |
commit | 2736a2f69e8e407bc3df38a43faab173f37e7c4c (patch) | |
tree | 04dd91fa724405570898d6fbad3244bbcfba641c /plugin | |
parent | 179993f0cd79c6d1ec88981084ed04090e4f77f2 (diff) |
[vim] Empty out $FZF_DEFAULT_COMMAND before unletting it
For Vim 8.0.1831 and below
* https://github.com/vim/vim/issues/1116
Fix https://github.com/junegunn/fzf.vim/issues/1301
Diffstat (limited to 'plugin')
-rw-r--r-- | plugin/fzf.vim | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugin/fzf.vim b/plugin/fzf.vim index 4190e0e3..b17361d2 100644 --- a/plugin/fzf.vim +++ b/plugin/fzf.vim @@ -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] |