Don't try to create an existing directory
Because this sets v:errmsg to E739, making other plugins fail.
This commit is contained in:
parent
99542d295b
commit
f170a5f9b0
@ -51,7 +51,7 @@ fu! ctrlp#utils#readfile(file)
|
|||||||
endf
|
endf
|
||||||
|
|
||||||
fu! ctrlp#utils#mkdir(dir)
|
fu! ctrlp#utils#mkdir(dir)
|
||||||
if exists('*mkdir')
|
if exists('*mkdir') && !isdirectory(a:dir)
|
||||||
sil! cal mkdir(a:dir, 'p')
|
sil! cal mkdir(a:dir, 'p')
|
||||||
en
|
en
|
||||||
retu a:dir
|
retu a:dir
|
||||||
|
Loading…
Reference in New Issue
Block a user