diff options
author | Hans Hagen <pragma@wxs.nl> | 2020-01-15 19:46:53 +0100 |
---|---|---|
committer | Context Git Mirror Bot <phg@phi-gamma.net> | 2020-01-15 19:46:53 +0100 |
commit | 5189b2143a30a39cd3533569cbef3f06422cc1d9 (patch) | |
tree | 04c19fe1ce25fdcbff815bd21126b2a3ca949dfd /tex/context/base/mkiv/strc-doc.lua | |
parent | 994f088d3ef44b6d8bed9b32827842d9bb026c63 (diff) | |
download | context-5189b2143a30a39cd3533569cbef3f06422cc1d9.tar.gz |
2020-01-15 19:13:00
Diffstat (limited to 'tex/context/base/mkiv/strc-doc.lua')
-rw-r--r-- | tex/context/base/mkiv/strc-doc.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tex/context/base/mkiv/strc-doc.lua b/tex/context/base/mkiv/strc-doc.lua index c38dc2f4d..9877a0f9c 100644 --- a/tex/context/base/mkiv/strc-doc.lua +++ b/tex/context/base/mkiv/strc-doc.lua @@ -885,7 +885,7 @@ function sections.findnumber(depth,what) -- needs checking (looks wrong and slow if sectiondata and sectiondata.hidenumber ~= true then -- can be nil local quit = what == v_previous or what == v_next if what == v_first or what == v_previous then - for i=index,1,-1 do + for i=index-1,1,-1 do local s = collected[i] if s then local n = s.numbers @@ -900,7 +900,7 @@ function sections.findnumber(depth,what) -- needs checking (looks wrong and slow end end elseif what == v_last or what == v_next then - for i=index,#collected do + for i=index+1,#collected do local s = collected[i] if s then local n = s.numbers |