fixed a bug with append hopefully

This commit is contained in:
Izaya 2017-08-27 04:22:24 +10:00
parent 2c61a6150b
commit 6763791189
1 changed files with 4 additions and 2 deletions

View File

@ -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)