mirror of
https://github.com/junegunn/fzf.git
synced 2025-08-04 06:02:04 -07:00
[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
This commit is contained in:
@@ -519,7 +519,8 @@ finally
|
|||||||
if len(prev_default_command)
|
if len(prev_default_command)
|
||||||
let $FZF_DEFAULT_COMMAND = prev_default_command
|
let $FZF_DEFAULT_COMMAND = prev_default_command
|
||||||
else
|
else
|
||||||
execute 'unlet $FZF_DEFAULT_COMMAND'
|
let $FZF_DEFAULT_COMMAND = ''
|
||||||
|
silent! execute 'unlet $FZF_DEFAULT_COMMAND'
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
let [&shell, &shellslash, &shellcmdflag, &shellxquote] = [shell, shellslash, shellcmdflag, shellxquote]
|
let [&shell, &shellslash, &shellcmdflag, &shellxquote] = [shell, shellslash, shellcmdflag, shellxquote]
|
||||||
|
Reference in New Issue
Block a user