commit 6334e991929c143db3d6abfe23a345cacfc9ff1a
parent 776aeef26f375cbf788942ebda92c74e818ce880
Author: Martin Grenfell <martin_grenfell@msn.com>
Date: Sun, 8 Jun 2008 21:02:54 +1200
be silent when opening files
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plugin/NERD_tree.vim b/plugin/NERD_tree.vim
@@ -2033,7 +2033,7 @@ function! s:OpenFileNode(treenode)
else
try
wincmd p
- exec ("edit " . a:treenode.path.StrForEditCmd())
+ silent exec ("edit " . a:treenode.path.StrForEditCmd())
catch /^Vim\%((\a\+)\)\=:E37/
call s:PutCursorInTreeWin()
call s:Echo("Cannot open file, it is already open and modified")