mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jul 2006
Posts: 4,180
W
Wims Offline OP
Hoopy frood
OP Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,180
Evaluating an identifier via the tab key inside an editbox used to keep the string as it is if it returned $null, just updated to 7.65 stable and it now replaces the identifier with nothing, which is probably more proper/accordingly, however I actually liked the previous behavior.

This is most likely related to the change with support for halfop completion (note that tabbing a variable which does not exist as a variable nor as an halfop does not replace the string with an empty string).

I believe & hope that since it doesn't do it with %variable, it's not an intended change.


#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Joined: Jan 2004
Posts: 2,127
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2004
Posts: 2,127
Confirmed. $no-such-identifier<tab> and $null<tab> used to do nothing (except show the identifier warning if that's checked in scripts/options), but now they both get replaced with the empty string, regardless whether the identifier warning is checked.

Same thing now happens if you use $?=test<tab> and then press <enter> without inputting a string

edit: %empty.string<tab> now changes into being the empty string if it contains a zero-length variable string, though it correctly does nothing if the variable doesn't exist. Previously it did the no-action like the old $null<tab>, doing nothing regardless whether or not the variable exists

Last edited by maroon; 01/06/21 10:30 PM.
Joined: Dec 2002
Posts: 5,477
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 5,477
Thanks this has been fixed for the next version.


Link Copied to Clipboard