[latex3-commits] [git/LaTeX3-latex3-luaotfload] harfnode-dev: Fix bugs (95c0e92)
Marcel Fabian Krüger
tex at 2krueger.de
Tue Sep 24 15:54:48 CEST 2019
Repository : https://github.com/latex3/luaotfload
On branch : harfnode-dev
Link : https://github.com/latex3/luaotfload/commit/95c0e92c0ed763ff2a6ca45fe739466d02359c96
>---------------------------------------------------------------
commit 95c0e92c0ed763ff2a6ca45fe739466d02359c96
Author: Marcel Fabian Krüger <tex at 2krueger.de>
Date: Tue Sep 24 15:54:48 2019 +0200
Fix bugs
>---------------------------------------------------------------
95c0e92c0ed763ff2a6ca45fe739466d02359c96
src/harf/harf-node.lua | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/harf/harf-node.lua b/src/harf/harf-node.lua
index 0fd3dd3..d019435 100644
--- a/src/harf/harf-node.lua
+++ b/src/harf/harf-node.lua
@@ -205,7 +205,7 @@ local function itemize(head, fontid, direction)
if lastdir ~= currdir or lastskip ~= skip then
lastrun = {
node = n,
- start = codes[#codes],
+ start = #codes,
len = 1,
font = fontid,
dir = currdir == "TRT" and dir_rtl or dir_ltr,
@@ -381,7 +381,7 @@ shape = function(run)
local hex = ""
local str = ""
local nextcluster
- while j = i+1,#glyphs do
+ for j = i+1, #glyphs do
nextcluster = glyphs[j].cluster
if cluster ~= nextcluster then
goto NEXTCLUSTERFOUND -- break
@@ -507,7 +507,7 @@ shape = function(run)
local lastrep = tail(rep)
setnext(lastrep, getnext(disc))
setprev(getnext(disc), lastrep)
- setnext(getprev(endnode), 0)
+ setnext(getprev(endnode), nil)
setnext(disc, endnode)
setprev(endnode, disc)
end
More information about the latex3-commits
mailing list