mirror of
https://github.com/preservim/tagbar.git
synced 2025-02-12 23:58:48 +08:00
Don't skip over closed folds with zk
This commit is contained in:
parent
a084e47eb4
commit
f9c5f24576
|
@ -3346,8 +3346,14 @@ function! s:GotoPrevFold() abort
|
|||
|
||||
if empty(taginfo)
|
||||
continue
|
||||
elseif !empty(taginfo.parent) && taginfo.parent != curparent &&
|
||||
\ empty(get(taginfo, 'children', []))
|
||||
" Check for the first tag that is either:
|
||||
" - the last tag in an open fold, that is skip all tags that have the
|
||||
" same parent as the current one, or
|
||||
" - a closed parent fold.
|
||||
elseif (!empty(taginfo.parent) && taginfo.parent != curparent &&
|
||||
\ empty(get(taginfo, 'children', []))) ||
|
||||
\ ((!empty(get(taginfo, 'children', [])) || taginfo.isKindheader()) &&
|
||||
\ taginfo.isFolded())
|
||||
let newlinenr = linenr
|
||||
break
|
||||
endif
|
||||
|
|
Loading…
Reference in New Issue
Block a user