Skip to content
Snippets Groups Projects
Commit da8e9ecac4a4 authored by Yuya Nishihara's avatar Yuya Nishihara
Browse files

templater: deduplicate iterator of overlay mappings

parent 7c902a8345ef
No related branches found
No related tags found
No related merge requests found
......@@ -599,9 +599,7 @@
diter = d.itermaps(context)
else:
diter = _checkeditermaps(darg, d)
for i, v in enumerate(diter):
lm = context.overlaymap(mapping, v)
lm['index'] = i
for lm in _iteroverlaymaps(context, mapping, diter):
yield evalrawexp(context, lm, targ)
def runmember(context, mapping, data):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment