"window -t @win NewTabStopNumber" doesn't always work change unless the @win is a -l listbox
This is an update on the bug I was reporting here: https://forums.mirc.com/ubbthreads.php/topics/262241/Re:_window_-t_@test_does_nothi#Post262241
To reproduce:
1. create the tabbed window with: /TabTestSetup
2. use up-arrow to repeatedly run: /tabtest
This changes the tab setting with "/window -t @win $rand(10,30)" and should make the green line's tabstops change. After repeating this a few times at short intervals, it stop working. It helps to make another window active and type /tabtest there, but it soon stops working there too. Sometimes double-clicking a few times in @win finally gets the tabs to move.
3. if i remove the semi-colon in front of 'rline' and repeat #2, it's much more likely to work, but still not 100%
4. if i create the window using -el instead of -e, /tabtest immediately updates the tabs 100% of the time
This happens in the current beta, but since this feature has been around for a long time, I tried to reproduce the bad behavior in 6.35 and was unable.
alias TabTestSetup {
window -c @win
window -e @win 0 0 999 299 Fixedsys 9
aline 2 @win $regsubex($str(x,100),/x/g,$right(\n,1))
aline 3 @win $regsubex($str(x,10),/x/g,$calc(\n -1) $+ $chr(9))
aline @win -------
}
alias TabTest {
:label
var %i $rand(10,30) | if (%i == %tab) goto label
set %tab $v1
window -t @win %tab
;rline @win 3 %tab
}