mirror of
https://github.com/preservim/nerdtree.git
synced 2024-11-25 09:41:03 +08:00
be silent when opening files
This commit is contained in:
parent
776aeef26f
commit
6334e99192
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue
Block a user