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:
Martin Grenfell 2008-12-25 10:10:56 +13:00
parent 6464cff113
commit 3b1289ba40

View File

@ -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