mIRC Homepage

Line length limit in script editor

Posted By: Wims

Line length limit in script editor - 05/08/19 12:38 PM

When a script line is more than the line lenght limit (8292) in literal characters, mIRC does not report a line too long error for the command; it chops at the limit and execute the rest as a new command.
I was trying to list all of the code point of the font segoe ui symbol to make a test script for the previously removed thread about height and ended up with more than 10000+ chars of codepoint space seperated put into a /tokenize:

Code
alias test {
tokenize 32 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
}
Copy and paste the "1 1 1" string to make it extremely long and execute /test, it should execute /1
Posted By: Khaled

Re: Line length limit in script editor - 05/08/19 01:32 PM

Thanks for your bug report.

Quote
Copy and paste the "1 1 1" string to make it extremely long and execute /test, it should execute /1

As far as I can tell, this is happening because the line is too long for the script editor editbox and is wrapping around to the next line.
Posted By: Wims

Re: Line length limit in script editor - 05/08/19 01:53 PM

Right, maybe adding a warning when such a line occurs after edition would help there?

Note that the script editor does not wrap visually speaking
© 2019 mIRC Discussion Forums