STATE.S is a revised State macro which fixes two bugs, one due to spaces in filenames, the other, incorrect restoration of Binary Mode files. The revision also adds save and restore of Browse Mode state for each file.
I have been informed (thanks to Ross Boyd) that the revisions I made to the State macro were not based on the latest version. I therefore have replaced that file with a revised version of the newer file. See "State_v1p4.zip" at:
A separate issue, though related to restoring editor state. I had included this in the revision notes of the state.s file.
In the "WhenLoaded" procedure in tse.ui, execution of the OneWindow() function causes loss of X offset when there is only one window. To fix that, add "and not CurrXOffset()" in that procedure as follows.
if NumWindows() < 2 and not isZoomed() and not CurrXOffset() // add this, jk if NumFiles() OneWindow() endif Process(1) endif