mirror of
https://github.com/preservim/tagbar.git
synced 2025-02-14 21:42:46 +08:00
Fix bug with user-defined types that don't specify folds
This commit is contained in:
parent
fbeea744d2
commit
15d82f669c
|
@ -771,9 +771,9 @@ function! s:GetUserTypeDefs()
|
|||
let kindlist = split(kind, ':')
|
||||
let kinddict = {'short' : kindlist[0], 'long' : kindlist[1]}
|
||||
if len(kindlist) == 3
|
||||
let kinddict.kindfolds = kindlist[2]
|
||||
let kinddict.fold = kindlist[2]
|
||||
else
|
||||
let kinddict.kindfolds = 0
|
||||
let kinddict.fold = 0
|
||||
endif
|
||||
call add(def.kinds, kinddict)
|
||||
endfor
|
||||
|
|
Loading…
Reference in New Issue
Block a user