From f534dab9bdcebf0cc7e920aa5dfa7b402b967bf5 Mon Sep 17 00:00:00 2001 From: Kien N Date: Sat, 14 Apr 2012 13:20:54 +0700 Subject: [PATCH] Skip non-existent files --- autoload/ctrlp.vim | 1 + 1 file changed, 1 insertion(+) diff --git a/autoload/ctrlp.vim b/autoload/ctrlp.vim index 85e2262..ce58ce5 100644 --- a/autoload/ctrlp.vim +++ b/autoload/ctrlp.vim @@ -912,6 +912,7 @@ fu! s:OpenMulti() " Open the files for va in mkd let bufnr = bufnr('^'.va.'$') + if bufnr < 0 && getftype(va) == '' | con | en let useb = bufnr > 0 && buflisted(bufnr) && emptytail let snd = md != '' && has_key(cmds, md) ? \ ( useb ? cmds[md][0] : cmds[md][1] ) : ( useb ? 'vert sb' : 'vne' )