From 3b1289ba40122997ddb79848af1d1653fd59a170 Mon Sep 17 00:00:00 2001 From: Martin Grenfell Date: Thu, 25 Dec 2008 10:10:56 +1300 Subject: [PATCH] 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 --- plugin/NERD_tree.vim | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugin/NERD_tree.vim b/plugin/NERD_tree.vim index b669e8d..8c9e365 100644 --- 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