From f170a5f9b00400a904bfa41cd89a5a6643a7ce12 Mon Sep 17 00:00:00 2001 From: Thibault Duplessis Date: Thu, 26 Jan 2012 10:27:01 +0100 Subject: [PATCH] Don't try to create an existing directory Because this sets v:errmsg to E739, making other plugins fail. --- autoload/ctrlp/utils.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/ctrlp/utils.vim b/autoload/ctrlp/utils.vim index 7b60265..c086c0c 100644 --- a/autoload/ctrlp/utils.vim +++ b/autoload/ctrlp/utils.vim @@ -51,7 +51,7 @@ fu! ctrlp#utils#readfile(file) endf fu! ctrlp#utils#mkdir(dir) - if exists('*mkdir') + if exists('*mkdir') && !isdirectory(a:dir) sil! cal mkdir(a:dir, 'p') en retu a:dir