Carlo,
I checked your latest PickList.s program
from 28 November 2022 and executed it.
It does only in some cases thus show the 'shrinking list' behavior.
For example thus not when doing a
menu TSE > 'File' > 'List Open'.
(as far as I can tell thus at this moment, if it can please inform).
Question:
Because your PickList.s program thus
1. Uses and manipulates a buffer
2. And also that 'List Open' buffer which you see when doing menu TSE > 'File' > 'List Open' is thus a buffer
3. Could therefore your PickList() program not also easily be extended to that ListOpen buffer also, e.g. by getting the bufferId() from ListOpen() and using that (also).
4. It looks like this generalization to other system buffers like the 'List Open' buffer would only be a very small programming step thus.
E.g. just
finding out which bufferId is used by 'List Open' and
passing or using that as a parameter here.
The question then probably initially boils down thus to 'what is the bufferid (always) used by 'List Open', or how can we find the current value of that bufferId used by 'List Open'?
Thanks
with friendly greetings
Knud van Eeden