1
0
mirror of https://github.com/gryf/tagbar.git synced 2025-12-17 19:40:27 +01:00

Fix has_key() parameters in currenttagtype function. (#645)

This commit is contained in:
2020-08-24 10:23:17 +02:00
committed by GitHub
parent a81c01c294
commit bcc32b42b5

View File

@@ -3720,7 +3720,7 @@ function! tagbar#currenttagtype(fmt, default) abort
let typeinfo = tag.fileinfo.typeinfo
let plural = typeinfo.kinds[typeinfo.kinddict[kind]].long
if has_key(plural)
if has_key(s:singular_types, plural)
let singular = s:singular_types[plural]
else
let singular = plural