rplugin.vim: GetManifestPath(): be more explicit (#6361)

This commit is contained in:
Daniel Hahler
2017-03-27 16:28:05 +02:00
committed by Justin M. Keyes
parent 72c29895e0
commit 595acbbc42

View File

@@ -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