From 67637911897c67d9153e9abd0d1155629cca8b29 Mon Sep 17 00:00:00 2001 From: XeonSquared Date: Sun, 27 Aug 2017 04:22:24 +1000 Subject: [PATCH] fixed a bug with append hopefully --- exec/skex2.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/exec/skex2.lua b/exec/skex2.lua index 691985a..7fb8969 100644 --- a/exec/skex2.lua +++ b/exec/skex2.lua @@ -36,6 +36,7 @@ function ct.list(s,e) end end function ct.sp(np) + np=tonumber(np) if np then if np > #ft then np = #ft @@ -60,8 +61,9 @@ function ct.insert(np) end end function ct.append(np) - if np then np=np+1 end - ct.insert(np) + ct.sp(np) + p=p+1 + ct.insert() end function ct.substitute(np) ct.sp(np)