Merge pull request #137 from AndrewRadev/double-edit-fix
Double edit fix
This commit is contained in:
commit
c8b54dc91a
@ -1229,7 +1229,6 @@ endfunction
|
|||||||
|
|
||||||
"FUNCTION: TreeFileNode.open() {{{3
|
"FUNCTION: TreeFileNode.open() {{{3
|
||||||
function! s:TreeFileNode.open(...)
|
function! s:TreeFileNode.open(...)
|
||||||
echomsg self.path.str()
|
|
||||||
let opts = a:0 ? a:1 : {}
|
let opts = a:0 ? a:1 : {}
|
||||||
let opener = s:Opener.New(self.path, opts)
|
let opener = s:Opener.New(self.path, opts)
|
||||||
call opener.open(self)
|
call opener.open(self)
|
||||||
@ -2088,7 +2087,6 @@ function! s:Opener._previousWindow()
|
|||||||
else
|
else
|
||||||
call s:exec('wincmd p')
|
call s:exec('wincmd p')
|
||||||
endif
|
endif
|
||||||
exec ("edit " . self._path.str({'format': 'Edit'}))
|
|
||||||
catch /^Vim\%((\a\+)\)\=:E37/
|
catch /^Vim\%((\a\+)\)\=:E37/
|
||||||
call s:putCursorInTreeWin()
|
call s:putCursorInTreeWin()
|
||||||
throw "NERDTree.FileAlreadyOpenAndModifiedError: ". self._path.str() ." is already open and modified."
|
throw "NERDTree.FileAlreadyOpenAndModifiedError: ". self._path.str() ." is already open and modified."
|
||||||
|
Loading…
x
Reference in New Issue
Block a user