mirror of
https://github.com/preservim/nerdtree.git
synced 2025-11-10 12:23:49 -05:00
bugfix for the e mapping
if we were using e on the current dir (or a file in that dir) then we would end up doing an ":edit" with no target. Now we use "." in Path#strForEditCmd if it would resolve to an empty string
This commit is contained in:
@@ -1567,6 +1567,10 @@ function! s:Path.strForEditCmd()
|
|||||||
let p = strpart(p, strlen(cwd)+1)
|
let p = strpart(p, strlen(cwd)+1)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
if p == ''
|
||||||
|
let p = '.'
|
||||||
|
endif
|
||||||
|
|
||||||
return p
|
return p
|
||||||
|
|
||||||
endfunction
|
endfunction
|
||||||
|
|||||||
Reference in New Issue
Block a user