nerdtree

A tree explorer plugin for vim.
Index Commits Files Refs
commit a72cb803379357ad0f63b5da55e1590b16f92ef6
parent e1abd4d373402f745611305435677a92d7707212
Author: marty <martin.grenfell@gmail.com>
Date:   Sat, 20 Nov 2010 18:01:38 +1300

fix a bug with :NERDTreeFind and symlinks

Previously, if we called NERDTreeFind for a file that was inside a
symlinked dir (when vims CWD was above that dir) then it would get
confused by the symlink and fail. Use :p with expand to get around this.

Diffstat:
Mplugin/NERD_tree.vim | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plugin/NERD_tree.vim b/plugin/NERD_tree.vim
@@ -2530,7 +2530,7 @@ endfunction
 " FUNCTION: s:findAndRevealPath() {{{2
 function! s:findAndRevealPath()
     try
-        let p = s:Path.New(expand("%"))
+        let p = s:Path.New(expand("%:p"))
     catch /^NERDTree.InvalidArgumentsError/
         call s:echo("no file for the current buffer")
         return