summaryrefslogtreecommitdiffstats
path: root/plugin
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2021-02-03 13:51:56 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2021-02-03 13:51:56 +0900
commitfcd896508bb6c995f0f256fa98fec34c0a788a30 (patch)
tree42ed5b93fdfb64bca2d20f98c012fa2ce1a34b35 /plugin
parentf55c990e863e995809912bded64fde4431e1961a (diff)
[vim] fzf#run should ignore empty 'dir' argument
Fix #2343
Diffstat (limited to 'plugin')
-rw-r--r--plugin/fzf.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugin/fzf.vim b/plugin/fzf.vim
index c94bb9ef..763747c3 100644
--- a/plugin/fzf.vim
+++ b/plugin/fzf.vim
@@ -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