diff options
author | Hans Hagen <pragma@wxs.nl> | 2019-03-05 16:41:28 +0100 |
---|---|---|
committer | Context Git Mirror Bot <phg@phi-gamma.net> | 2019-03-05 16:41:28 +0100 |
commit | b958bba841f9907582f3c5fa4b6162353636fc8f (patch) | |
tree | 4a96267049c80b9ff80645f31962e391b70b4473 /tex/context/base/mkiv/font-ots.lua | |
parent | 4916c5e036f646daaa3ec913c4c69ce4fb3da1c5 (diff) | |
download | context-b958bba841f9907582f3c5fa4b6162353636fc8f.tar.gz |
2019-03-05 15:48:00
Diffstat (limited to 'tex/context/base/mkiv/font-ots.lua')
-rw-r--r-- | tex/context/base/mkiv/font-ots.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tex/context/base/mkiv/font-ots.lua b/tex/context/base/mkiv/font-ots.lua index 563094fc1..b9f719a5f 100644 --- a/tex/context/base/mkiv/font-ots.lua +++ b/tex/context/base/mkiv/font-ots.lua @@ -829,7 +829,7 @@ function handlers.gsub_ligature(head,start,dataset,sequence,ligature,rlmode,skip end end if not match and not pre or not replace then - local n = getnext(discfound) + local n = getnext(discfound) local char = ischar(n,currentfont) if char and ligature[char] then match = true @@ -841,8 +841,8 @@ function handlers.gsub_ligature(head,start,dataset,sequence,ligature,rlmode,skip local prev = getprev(start) if stop then setnext(stop) - local tail = getprev(stop) local copy = copy_node_list(start) + local tail = stop -- was: getprev(stop) -- Kai: needs checking on your samples local liat = find_node_tail(copy) if pre then setlink(liat,pre) |