diff options
author | Marius <mariausol@gmail.com> | 2013-05-31 23:40:49 +0300 |
---|---|---|
committer | Marius <mariausol@gmail.com> | 2013-05-31 23:40:49 +0300 |
commit | 9a194c86a8d31ce7f07712961e5ec72023a00823 (patch) | |
tree | f5a34823fdacf9be583a3f63faa14b39177759bd /tex/context/base/page-mix.lua | |
parent | cc1c43092378e4bb53255c8aa165a6063f829c33 (diff) | |
download | context-9a194c86a8d31ce7f07712961e5ec72023a00823.tar.gz |
beta 2013.05.31 21:57
Diffstat (limited to 'tex/context/base/page-mix.lua')
-rw-r--r-- | tex/context/base/page-mix.lua | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/tex/context/base/page-mix.lua b/tex/context/base/page-mix.lua index cf0094787..f265ac8f9 100644 --- a/tex/context/base/page-mix.lua +++ b/tex/context/base/page-mix.lua @@ -282,7 +282,6 @@ local function setsplit(specification) -- a rather large function if column == nofcolumns then column = 0 -- nicer in trace rest = head - -- lasthead = head return false, 0 else local skipped @@ -290,7 +289,6 @@ local function setsplit(specification) -- a rather large function result = results[column] current, skipped = discardtopglue(current,discarded) head = current - -- lasthead = head return true, skipped end end @@ -324,7 +322,7 @@ local function setsplit(specification) -- a rather large function while current do local id = current.id local nxt = current.next -local lastcolumn = column + local lastcolumn = column if id == hlist_code or id == vlist_code then line = line + 1 local nxtid = nxt and nxt.id @@ -417,9 +415,9 @@ local lastcolumn = column -- club and widow and such i.e. resulting penalties (if we care) end end -if lastcolumn == column then - nxt = current.next -- can have changed -end + if current then -- lastcolumn == column then + nxt = current.next -- can have changed + end if nxt then current = nxt elseif head == lasthead then |