C domain: Fix namespace-pop context (#11935)

This commit is contained in:
Frank Dana 2024-02-03 18:55:49 -05:00 committed by GitHub
parent 41ab0f9a41
commit 9faf114ea1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -374,7 +374,7 @@ class CNamespacePopObject(SphinxDirective):
symbol = self.env.domaindata['c']['root_symbol']
self.env.temp_data['c:parent_symbol'] = symbol
self.env.temp_data['c:namespace_stack'] = stack
self.env.ref_context['cp:parent_key'] = symbol.get_lookup_key()
self.env.ref_context['c:parent_key'] = symbol.get_lookup_key()
return []