From cf0049e84bf9ac476cf67e965fcf97ed152b6026 Mon Sep 17 00:00:00 2001
From: Robert Alessi <alessi@robertalessi.net>
Date: Thu, 8 Nov 2018 20:02:18 +0100
Subject: testapparatus: reset pg_i if 'pg_ii > pg_i' succeeds

---
 ekdosis.dtx | 1 +
 1 file changed, 1 insertion(+)

(limited to 'ekdosis.dtx')

diff --git a/ekdosis.dtx b/ekdosis.dtx
index 165a9a6..523ae9c 100644
--- a/ekdosis.dtx
+++ b/ekdosis.dtx
@@ -537,6 +537,7 @@ ekdosis.testapparatus = function()
    if pg_ii == pg_i then
       return "\\boolfalse{doapp}"
    elseif pg_ii > pg_i then
+      pg_i = pg_ii
       return "\\booltrue{doapp}"
    else
       return "\\boolfalse{doapp}"
-- 
cgit v1.2.3

