mirror of
https://github.com/preservim/nerdtree.git
synced 2025-11-08 11:23:48 -05:00
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.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user