diff options
author | Hans Hagen <pragma@wxs.nl> | 2021-02-14 17:26:41 +0100 |
---|---|---|
committer | Context Git Mirror Bot <phg@phi-gamma.net> | 2021-02-14 17:26:41 +0100 |
commit | cf803ad70f7a6ad2e7779875fcc02dd711706fc6 (patch) | |
tree | b0602f037d8e025955d2fe1eebf962cd7e8bd90a /tex/context/base/mkxl/syst-lua.lmt | |
parent | 79bdc958cec8c084f8c8472e8f600c60969b03fa (diff) | |
download | context-cf803ad70f7a6ad2e7779875fcc02dd711706fc6.tar.gz |
2021-02-14 16:14:00
Diffstat (limited to 'tex/context/base/mkxl/syst-lua.lmt')
-rw-r--r-- | tex/context/base/mkxl/syst-lua.lmt | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/tex/context/base/mkxl/syst-lua.lmt b/tex/context/base/mkxl/syst-lua.lmt index 911f9cbdf..a89cea852 100644 --- a/tex/context/base/mkxl/syst-lua.lmt +++ b/tex/context/base/mkxl/syst-lua.lmt @@ -396,9 +396,12 @@ do usage = "value", actions = function(prefix) local n = scaninteger() - scankeyword("to") - local m = scancsname(true) local c = channels[n] + if scankeyword("line") and c then + c:gotoline(scaninteger()) + end + scankeyword("to") + local m = scancsname(true) local g = 0 local s l = 0 @@ -466,9 +469,12 @@ do usage = "value", actions = function(prefix) local n = scaninteger() - scankeyword("to") - local m = scancsname(true) local c = channels[n] + if scankeyword("line") and c then + c:gotoline(scaninteger()) + end + scankeyword("to") + local m = scancsname(true) local s = c and c:reader() if s then local e = texgetcount("endlinechar") -- we can have tex.endline if needed |