mirror of
https://github.com/preservim/nerdtree.git
synced 2025-11-09 03:43:50 -05:00
be silent when opening files
This commit is contained in:
@@ -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")
|
||||||
|
|||||||
Reference in New Issue
Block a user