We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 22de74a + ce6c347 commit 36cd8bfCopy full SHA for 36cd8bf
plugin/NERD_tree.vim
@@ -2999,6 +2999,11 @@ function! s:findAndRevealPath()
2999
return
3000
endtry
3001
3002
+ if p.getLastPathComponent(0) =~# '^\.'
3003
+ let showhidden=g:NERDTreeShowHidden
3004
+ let g:NERDTreeShowHidden = 1
3005
+ endif
3006
+
3007
if !s:treeExistsForTab()
3008
try
3009
let cwd = s:Path.New(getcwd())
@@ -3023,6 +3028,10 @@ function! s:findAndRevealPath()
3023
3028
endif
3024
3029
call s:putCursorInTreeWin()
3025
3030
call b:NERDTreeRoot.reveal(p)
3031
3032
3033
+ let g:NERDTreeShowHidden = showhidden
3034
3026
3035
endfunction
3027
3036
3037
" FUNCTION: s:has_opt(options, name) {{{2
0 commit comments