mirror of
https://github.com/preservim/nerdtree.git
synced 2025-11-10 04:13:48 -05:00
fix for swap files and opening in a split
when opening a file in a new split (with the <tab> map) we were doing the :split with a "silent" modifier. This meant that a swap existed and input was required from the user, the script would just freeze up
This commit is contained in:
@@ -2320,7 +2320,7 @@ function! s:OpenNodeSplit(treenode)
|
||||
|
||||
" Open the new window
|
||||
try
|
||||
exec("silent " . splitMode." sp " . a:treenode.path.StrForEditCmd())
|
||||
exec(splitMode." sp " . a:treenode.path.StrForEditCmd())
|
||||
catch /^Vim\%((\a\+)\)\=:E37/
|
||||
call s:PutCursorInTreeWin()
|
||||
throw "NERDTree.view.FileOpen exception: ". a:treenode.path.Str(0) ." is already open and modified."
|
||||
|
||||
Reference in New Issue
Block a user