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/mkiv/data-tex.lua | |
parent | 79bdc958cec8c084f8c8472e8f600c60969b03fa (diff) | |
download | context-cf803ad70f7a6ad2e7779875fcc02dd711706fc6.tar.gz |
2021-02-14 16:14:00
Diffstat (limited to 'tex/context/base/mkiv/data-tex.lua')
-rw-r--r-- | tex/context/base/mkiv/data-tex.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tex/context/base/mkiv/data-tex.lua b/tex/context/base/mkiv/data-tex.lua index 55383c1fe..2c1a7dbd5 100644 --- a/tex/context/base/mkiv/data-tex.lua +++ b/tex/context/base/mkiv/data-tex.lua @@ -149,6 +149,12 @@ local function textopener(tag,filename,filehandle,coding) filename = filename, noflines = noflines, -- currentline = 0, + gotoline = function(self,n) + currentline = n - 1 + if currentline <= 0 then + currentline = 0 + end + end, endoffile = function() return not lines or currentline >= noflines end, |