mirror of
https://github.com/preservim/nerdtree.git
synced 2025-11-08 11:23:48 -05:00
Revert "be silent when opening files"
This reverts commit 6334e99192.
Opening files silently causes vim to hang if the file is already open by
another vim instance (it tries to print out the swap file
message/options but it cant).
This commit is contained in:
@@ -2123,7 +2123,7 @@ function! s:OpenFileNode(treenode)
|
||||
else
|
||||
try
|
||||
wincmd p
|
||||
silent exec ("edit " . a:treenode.path.StrForEditCmd())
|
||||
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")
|
||||
|
||||
Reference in New Issue
Block a user