From acaf480bdcd5f3e8562fd78cd94850f4eb83ec57 Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Wed, 17 Aug 2016 17:56:10 -0400 Subject: host.vim: s:GetManifestPath(): Create base directory if needed. If the base directory does not exist, let mkdir(...,'p') create it. --- runtime/autoload/remote/host.vim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'runtime') diff --git a/runtime/autoload/remote/host.vim b/runtime/autoload/remote/host.vim index 355ff339dc..3c70101966 100644 --- a/runtime/autoload/remote/host.vim +++ b/runtime/autoload/remote/host.vim @@ -132,13 +132,13 @@ function! s:GetManifestPath() abort endif let dest = fnamemodify(expand(dest), ':p') - if !empty(dest) && isdirectory(dest) - let dest .= 'nvim/' + if !empty(dest) && !filereadable(dest) + let dest .= ('/' ==# dest[-1:] ? '' : '/') . 'nvim' call mkdir(dest, 'p', 700) let manifest_base = dest endif - return manifest_base.'rplugin.vim' + return manifest_base.'/rplugin.vim' endfunction -- cgit