summaryrefslogtreecommitdiffstats
path: root/plugin
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2021-10-10 20:16:59 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2021-10-10 20:19:48 +0900
commit2736a2f69e8e407bc3df38a43faab173f37e7c4c (patch)
tree04dd91fa724405570898d6fbad3244bbcfba641c /plugin
parent179993f0cd79c6d1ec88981084ed04090e4f77f2 (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.vim3
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]