mirror of
https://github.com/preservim/tagbar.git
synced 2025-02-15 14:12:46 +08:00
Fix bug when scope field exists but is empty
This commit is contained in:
parent
5461adc534
commit
f3973b1817
|
@ -1774,7 +1774,9 @@ function! s:ParseTagline(part1, part2, typeinfo, fileinfo)
|
|||
let delimit = stridx(field, ':')
|
||||
let key = strpart(field, 0, delimit)
|
||||
let val = strpart(field, delimit + 1)
|
||||
let taginfo.fields[key] = val
|
||||
if len(val) > 0
|
||||
let taginfo.fields[key] = val
|
||||
endif
|
||||
endfor
|
||||
" Needed for jsctags
|
||||
if has_key(taginfo.fields, 'lineno')
|
||||
|
|
Loading…
Reference in New Issue
Block a user