Permalink
Browse files

Merge pull request #137 from AndrewRadev/double-edit-fix

Double edit fix
  • Loading branch information...
2 parents 2a05782 + 71465f7 commit c8b54dc91a1b14ca1fad8f0735668c695f083962 @scrooloose committed Feb 14, 2012
Showing with 0 additions and 2 deletions.
  1. +0 −2 plugin/NERD_tree.vim
View
@@ -1229,7 +1229,6 @@ endfunction
"FUNCTION: TreeFileNode.open() {{{3
function! s:TreeFileNode.open(...)
- echomsg self.path.str()
let opts = a:0 ? a:1 : {}
let opener = s:Opener.New(self.path, opts)
call opener.open(self)
@@ -2088,7 +2087,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."

0 comments on commit c8b54dc

Please sign in to comment.