On 10/22/22 17:40, Pablo Rodriguez wrote:
> Hi Hans,
> [...]
> The variable "cheat" seems not to be used elsewhere.

Hans,

I’m afraid my previous patch was wrong.

I totally overlooked the other conditional where "cheat" was in use (in
strc-lst.lua).

I attach the diff file (but against the file included in current latest).

Sorry for the mess and many thanks for your help,

Pablo
--- strc-lst.lua	2022-10-24 10:30:53.529012500 +0200
+++ mkiv/strc-lst.lua	2022-10-24 10:31:29.876649600 +0200
@@ -897,8 +897,9 @@
             local metadata   = listentry.metadata
             local numberdata = listentry.numberdata
             local references = listentry.references
+            local v          = usedviews[i]
             local special    = specials and numberdata and specials[zerostrippedconcat(numberdata.numbers,".")] or ""
-            if cheat and references then
+            if cheat and cheats[v] and references then
                 -- this permits runs=2 with interactivity
                 local internal = references.internal
                 usedinternals[internal] = true

_______________________________________________
dev-context mailing list
dev-context@ntg.nl
https://mailman.ntg.nl/mailman/listinfo/dev-context

Reply via email to