[vim] fzf#run should ignore empty 'dir' argument

Fix #2343
This commit is contained in:
Junegunn Choi
2021-02-03 13:51:56 +09:00
parent f55c990e86
commit fcd896508b
2 changed files with 4 additions and 4 deletions

View File

@@ -424,10 +424,10 @@ try
throw v:exception
endtry
if !has_key(dict, 'dir')
if !s:present(dict, 'dir')
let dict.dir = s:fzf_getcwd()
endif
if has('win32unix') && has_key(dict, 'dir')
if has('win32unix') && s:present(dict, 'dir')
let dict.dir = fnamemodify(dict.dir, ':p')
endif