mirror of
https://github.com/preservim/nerdtree.git
synced 2025-11-09 11:53:48 -05:00
Put '%' argument in bufname() for backwards compatibility. (#1105)
* Put '%' argument in bufname() for backwards compatibility. * Update version number in change log.
This commit is contained in:
@@ -296,7 +296,7 @@ endfunction
|
||||
" FUNCTION: Path.edit() {{{1
|
||||
function! s:Path.edit()
|
||||
let l:bufname = self.str({'format': 'Edit'})
|
||||
if bufname() !=# l:bufname
|
||||
if bufname('%') !=# l:bufname
|
||||
exec 'edit ' . l:bufname
|
||||
endif
|
||||
endfunction
|
||||
|
||||
Reference in New Issue
Block a user