Don't try to create an existing directory

Because this sets v:errmsg to E739, making other plugins fail.
This commit is contained in:
Thibault Duplessis 2012-01-26 10:27:01 +01:00
parent 99542d295b
commit f170a5f9b0

View File

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