Page 1 of 1

Decoding SC tab flags

Posted: 02 Sep 2024 08:34
by jupe
Don I have been getting some confusing values returned from SC tab("get", "flags"), such as 16,17,18,20,21,24,29, I have deduced that having a LF active adds 8 to the flags return value (which isn't doc'd), but numbers this high have me confused.

So far I have only seen it happen occasionally in my main config, so is it just an anomaly, or are there more undoc'd flags to be aware of?

I knocked up a quick script to check open tabs if you were interested in seeing if it's repro-able.

Code: Select all

$r=; foreach(,"1|2") { $r .= "PANE <get pane> TAB FLAGS<br>"; while ($i++ < tab(, c)) { $r .= "Tab$i<tab>= " . tab(, "flags", $i) . <br>; } $i=; focus "PI"; } text $r;

Re: Decoding SC tab flags

Posted: 02 Sep 2024 09:20
by admin
Bit 16 (eTabFlagCacheStale) is an internal flag added in conjunction with this fix:

Code: Select all

v23.00.0315 - 2022-05-17 13:47
    ! Tabs: Fixed a couple of glitches related to switching find tabs, find results 
      caching, multi-location searches, and tab relocation.
I should probably mask it out in the return of SC tab.
And yes, 8 = eTabFlagLiveFiltered.

Re: Decoding SC tab flags

Posted: 02 Sep 2024 22:52
by jupe
Ah, I see you already made the changes in .0412, thanks! :tup: