mIRC Home    About    Download    Register    News    Help

Print Thread
$identifier + tab in editbox #269043 30/05/21 02:30 PM
Joined: Jul 2006
Posts: 3,774
W
Wims Offline OP
Hoopy frood
OP Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 3,774
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.


Looking for a good help channel about mIRC? Check #mircscripting @ irc.swiftirc.net
Re: $identifier + tab in editbox [Re: Wims] #269080 01/06/21 10:20 PM
Joined: Jan 2004
Posts: 1,585
maroon Offline
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2004
Posts: 1,585
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.
Re: $identifier + tab in editbox [Re: Wims] #269098 05/06/21 11:01 AM
Joined: Dec 2002
Posts: 4,936
Khaled Offline
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 4,936
Thanks this has been fixed for the next version.