mirror of
https://github.com/preservim/nerdtree.git
synced 2025-02-08 02:27:20 +08:00
fix mixed indenting
This commit is contained in:
parent
b3b394c329
commit
7ff9def95b
|
@ -2562,18 +2562,18 @@ function! s:findAndRevealPath()
|
|||
endtry
|
||||
|
||||
if !s:treeExistsForTab()
|
||||
try
|
||||
let cwd = s:Path.New(getcwd())
|
||||
catch /^NERDTree.InvalidArgumentsError/
|
||||
call s:echo("current directory does not exist.")
|
||||
let cwd = p.getParent()
|
||||
endtry
|
||||
try
|
||||
let cwd = s:Path.New(getcwd())
|
||||
catch /^NERDTree.InvalidArgumentsError/
|
||||
call s:echo("current directory does not exist.")
|
||||
let cwd = p.getParent()
|
||||
endtry
|
||||
|
||||
if p.isUnder(cwd)
|
||||
call s:initNerdTree(cwd.str())
|
||||
else
|
||||
if p.isUnder(cwd)
|
||||
call s:initNerdTree(cwd.str())
|
||||
else
|
||||
call s:initNerdTree(p.getParent().str())
|
||||
endif
|
||||
endif
|
||||
else
|
||||
if !p.isUnder(s:TreeFileNode.GetRootForTab().path)
|
||||
call s:initNerdTree(p.getParent().str())
|
||||
|
|
Loading…
Reference in New Issue
Block a user