"GOT", but the "O" is a cute, smiling pufferfish. Index | Thread | Search

From:
Stefan Sperling <stsp@stsp.name>
Subject:
Re: tog: tree view move-to-parent bug
To:
Christian Weisgerber <naddy@mips.inka.de>, gameoftrees@openbsd.org
Date:
Sun, 29 Nov 2020 13:53:53 +0100

Download raw body.

Thread
On Fri, Nov 27, 2020 at 11:47:58AM +0100, Stefan Sperling wrote:
> Yes, I like this simpler fix, too. Ok.

There's another problem with the idea of restoring the parent's scroll
position. In a full-screen terminal (i.e. much longer than 80x24), browse
to lib/libz in the OpenBSD src.git repository. Enter the libz directory.
Now reduce the size of the window to 80x24, and browse back up to lib/.

The selected entry remains 'zlib' but it is now off-screen which may
surprise people.

We could abandon the idea of retaining the scroll position of parents,
or we could reset the scroll position of all parents in input_tree_view()
if tog_sigwinch_received is true. Other ideas?