be silent when opening files

This commit is contained in:
Martin Grenfell 2008-06-08 21:02:54 +12:00
parent 776aeef26f
commit 6334e99192

View File

@ -2033,7 +2033,7 @@ function! s:OpenFileNode(treenode)
else else
try try
wincmd p wincmd p
exec ("edit " . a:treenode.path.StrForEditCmd()) silent exec ("edit " . a:treenode.path.StrForEditCmd())
catch /^Vim\%((\a\+)\)\=:E37/ catch /^Vim\%((\a\+)\)\=:E37/
call s:PutCursorInTreeWin() call s:PutCursorInTreeWin()
call s:Echo("Cannot open file, it is already open and modified") call s:Echo("Cannot open file, it is already open and modified")