Skip non-existent files

This commit is contained in:
Kien N 2012-04-14 13:20:54 +07:00
parent aba33190b6
commit f534dab9bd

View File

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