修复粘贴任务后光标位置错误

This commit is contained in:
MrZ626
2021-01-16 22:38:45 +08:00
parent 562f7c4f2d
commit ba8a39465f
2 changed files with 5 additions and 4 deletions

View File

@@ -72,9 +72,11 @@ function scene.keyDown(key)
local str=sys.getClipboardText()
local args=splitStr(str:sub((str:find(":")or 0)+1),"!")
if #args<4 then goto fail end
if not pasteQuestArgs(args[1])then goto fail end
if not pasteSequence(args[2])then goto fail end
if not pasteMission(args[3])then goto fail end
if not(
pasteQuestArgs(args[1])and
pasteSequence(args[2])and
pasteMission(args[3])
)then goto fail end
repeat table.remove(FIELD)until #FIELD==0
FIELD[1]=newBoard()
for i=4,#args do

View File

@@ -20,7 +20,6 @@ end
local missionEnum=missionEnum
local legalInput={Z=true,S=true,J=true,L=true,T=true,O=true,I=true,A=true,_=true,P=true}
function scene.keyDown(key)
local MISSION=MISSION
if key=="left"then
local p=cur
if p==0 then