diff options
author | Daniel Hahler <github@thequod.de> | 2017-03-27 16:28:05 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2017-03-27 16:28:05 +0200 |
commit | 595acbbc42e2856d958f518421a8cb56b0501127 (patch) | |
tree | 11a669c06a9b0c53ac460bcaa43db46ab913515b | |
parent | 72c29895e0eab6b77a1f9990c642163664915bb1 (diff) | |
download | rneovim-595acbbc42e2856d958f518421a8cb56b0501127.tar.gz rneovim-595acbbc42e2856d958f518421a8cb56b0501127.tar.bz2 rneovim-595acbbc42e2856d958f518421a8cb56b0501127.zip |
rplugin.vim: GetManifestPath(): be more explicit (#6361)
-rw-r--r-- | runtime/plugin/rplugin.vim | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/runtime/plugin/rplugin.vim b/runtime/plugin/rplugin.vim index 7d83668a30..ca15ec82d1 100644 --- a/runtime/plugin/rplugin.vim +++ b/runtime/plugin/rplugin.vim @@ -17,9 +17,11 @@ function! s:GetManifestPath() abort endif let dest = fnamemodify(expand(dest), ':p') - if !empty(dest) && !filereadable(dest) + if !empty(dest) let dest .= ('/' ==# dest[-1:] ? '' : '/') . 'nvim' - call mkdir(dest, 'p', 0700) + if !isdirectory(dest) + call mkdir(dest, 'p', 0700) + endif let manifest_base = dest endif |