Remove second "edit" from Opener

This commit is contained in:
Andrew Radev 2012-02-14 12:38:23 +02:00
parent 2a0578227e
commit ff0816979c

View File

@ -2088,7 +2088,6 @@ function! s:Opener._previousWindow()
else
call s:exec('wincmd p')
endif
exec ("edit " . self._path.str({'format': 'Edit'}))
catch /^Vim\%((\a\+)\)\=:E37/
call s:putCursorInTreeWin()
throw "NERDTree.FileAlreadyOpenAndModifiedError: ". self._path.str() ." is already open and modified."