(2025-03-10, 7:28)Yx Wang Wrote: I found something wired while using some script. All built in script works fine but while I add script like spool.lua into %APPDATA% folder. My windows machine with 1.6d2 return a invalid parameter error while using the code. But my mac running 1.7beta1 with wine 10.0 works fine with exact same configuration. I'm not sure where the issure was 1.6d2 and 1.7 should be the same with those scriptl. do they?
on line 12?
This is the result of changes made in 1.7: "addNewLine no longer returns the new line's index as a second value."
You can prevent the error by splitting the line into
Code:
local line=sf:addNewLine(lnr,str)
sel:add(line)