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

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

No files matched your search

+2 -2
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