修复不能正确粘贴序列的问题
This commit is contained in:
@@ -34,10 +34,8 @@ function DATA.copySequence()
|
|||||||
return str
|
return str
|
||||||
end
|
end
|
||||||
function DATA.pasteSequence(str)
|
function DATA.pasteSequence(str)
|
||||||
local b
|
TABLE.cut(BAG)
|
||||||
|
local b,reg
|
||||||
local bag={}
|
|
||||||
local reg
|
|
||||||
for i=1,#str do
|
for i=1,#str do
|
||||||
b=byte(str,i)
|
b=byte(str,i)
|
||||||
if not reg then
|
if not reg then
|
||||||
@@ -48,21 +46,17 @@ function DATA.pasteSequence(str)
|
|||||||
end
|
end
|
||||||
else
|
else
|
||||||
if b>=97 and b<=125 then
|
if b>=97 and b<=125 then
|
||||||
ins(bag,reg)
|
ins(BAG,reg)
|
||||||
reg=b-96
|
reg=b-96
|
||||||
elseif b>=34 and b<=96 then
|
elseif b>=34 and b<=96 then
|
||||||
for _=1,b-32 do
|
for _=1,b-32 do
|
||||||
ins(bag,reg)
|
ins(BAG,reg)
|
||||||
end
|
end
|
||||||
reg=false
|
reg=false
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
if reg then
|
if reg then ins(BAG,reg)end
|
||||||
ins(bag,reg)
|
|
||||||
end
|
|
||||||
|
|
||||||
BAG=bag
|
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user