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:
parent
6464cff113
commit
3b1289ba40
@ -1566,6 +1566,10 @@ function! s:Path.strForEditCmd()
|
||||
if stridx(p, cwd) == 0
|
||||
let p = strpart(p, strlen(cwd)+1)
|
||||
endif
|
||||
|
||||
if p == ''
|
||||
let p = '.'
|
||||
endif
|
||||
|
||||
return p
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user