fixed a bug with append hopefully

This commit is contained in:
Izaya 2017-08-27 04:22:24 +10:00
parent 2c61a6150b
commit 6763791189

View File

@ -36,6 +36,7 @@ function ct.list(s,e)
end end
end end
function ct.sp(np) function ct.sp(np)
np=tonumber(np)
if np then if np then
if np > #ft then if np > #ft then
np = #ft np = #ft
@ -60,8 +61,9 @@ function ct.insert(np)
end end
end end
function ct.append(np) function ct.append(np)
if np then np=np+1 end ct.sp(np)
ct.insert(np) p=p+1
ct.insert()
end end
function ct.substitute(np) function ct.substitute(np)
ct.sp(np) ct.sp(np)