commit 3b1289ba40122997ddb79848af1d1653fd59a170
parent 6464cff1131733ae4d5ba6ac6561be8833eb8c97
Author: Martin Grenfell <martin_grenfell@msn.com>
Date: Thu, 25 Dec 2008 10:10:56 +1300
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
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/plugin/NERD_tree.vim b/plugin/NERD_tree.vim
@@ -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