summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2021-05-21 13:17:19 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2021-05-21 13:17:19 +0900
commitcbedb575112a46058cbf3fb45f1569aed3a22fc0 (patch)
treedcba1472373b46f7c3284e3b4ab6fc086a035caf
parent9ef825d2fd50709d6e921559ec1e65cc29674e35 (diff)
[vim] Workaround for Neovim bug of unconditionally evaluating `unlet $ENV_VAR`
See #2495
-rw-r--r--plugin/fzf.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugin/fzf.vim b/plugin/fzf.vim
index 11159af6..04f96435 100644
--- a/plugin/fzf.vim
+++ b/plugin/fzf.vim
@@ -519,7 +519,7 @@ finally
if len(prev_default_command)
let $FZF_DEFAULT_COMMAND = prev_default_command
else
- unlet $FZF_DEFAULT_COMMAND
+ execute 'unlet $FZF_DEFAULT_COMMAND'
endif
endif
let [&shell, &shellslash, &shellcmdflag, &shellxquote] = [shell, shellslash, shellcmdflag, shellxquote]