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:
Martin Grenfell 2008-07-02 22:38:47 +12:00
parent ec682b1f9b
commit 06c7c53127
2 changed files with 2 additions and 1 deletions

View File

@ -889,6 +889,7 @@ fridge for later ;)
settings for each new NERD tree.
- fix to window resizing when opening a file when NERD tree is the only
window open
- other fixes
2.11.0
- changes to the 'o' mapping when opening files:

View File

@ -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."