From bc8a5b023053a759346f817080e924b07a21b0ab Mon Sep 17 00:00:00 2001 From: Aire-One Date: Sun, 28 Mar 2021 18:47:56 +0200 Subject: [PATCH] fix(ldoc.ltp): item.inherited can be wrongly true For some even more strange reasons than commit 047729ae1, it seems we can also have the error that `item.inherited` can be sets to `true` on items that are not inherited... I just had this issue with `wibox.widget.imagebox` where properties were marked as inherited from `wibox.widget.imagebox`. Best way to fix it is to only trust the check on `item.baseclass`, and completly dismiss its `inherited` property. --- docs/ldoc.ltp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/ldoc.ltp b/docs/ldoc.ltp index 8425bfa3..337dba60 100644 --- a/docs/ldoc.ltp +++ b/docs/ldoc.ltp @@ -259,7 +259,7 @@ # end # for item in iter(k.items) do if not item.tags.hidden then # local dn = display_name(item) -# local inherited = item.inherited or (item.baseclass ~= module.name) +# local inherited = (item.baseclass ~= module.name) # if item.sanitize_type then item.sanitize_type(item, ldoc) end # if item.display_type and not item.compact_signature then @@ -333,7 +333,7 @@ $(item.display_type) # end -# if item.inherited or (item.baseclass ~= module.name) then +# if item.baseclass ~= module.name then · Inherited from $(M(item.baseclass, item)) # end # if item.extra_summary then