Re: [PATCH] upcoming new feature: smooth whole-window sideways scrolling
Benno Schulenberg <[email protected]> Sun, 18 Jan 2026 08:42:17 +0100
| Newsgroups | gmane.editors.nano.devel |
|---|---|
| Message-ID | <[email protected]> |
Op 10-01-2026 om 16:07 schreef Benno Schulenberg:
> With above patch applied, run `src/nano +89 doc/faq.html` and press <End>.
> Then hold down <Ctrl+Left> for a second until the cursor is at "Pine",
> somewhere left-of-center on your terminal. See that two lines above are the
> words "free software" and two lines further the word "familiar". Now tap
> <Up> twice to go to the line with "free software". Huh? Where is the
> cursor?! ... It sits near the right edge of the terminal after "free" and
> before "so>". This may be logical and inherent to the patch, but it is
> rather unexpected and undesirable.
>
> [...] What I do have is a rough patch that returns 'brink' to what it was
> (when possible) as long as any movement hasn't changed the 'placewewant'
With the above example the patch works nicely. But now try this:
src/nano +223,167 doc/faq.html
Type <Ctrl+Left> a dozen times, until the cursor is at "Now".
Then tap <Up> twice. The cursor will sit before "Alt+Down",
in the same screen column as "Now" was. That is the intended
behavior.
But now tap <Up> twenty more times. The cursor walks up along
the right edge of the table with URxvt keysyms while most of
the table is offscreen to the left -- but the table would fit
fully onscreen if 'brink' were kept zero (which it would be
without the patch).
When there is just an occasional overlong line, the patch is
too eager to scroll the screen to the right, so I'm retracting
this extra modification.
Benno
OpenPGP_signature.asc
(application/pgp-signature, 840 B)
-----BEGIN PGP SIGNATURE----- wsF5BAABCAAjFiEEFo5vQpe/16ea/USWUUu+Lrjhlh8FAmlsjtkFAwAAAAAACgkQUUu+Lrjhlh9O jg//fd8ZHF+2gHPtSZnAuWfM0on4T/ilUwsf9zJkTs7Bh1YvmHtbO/PiU15GsI79UBbWZ+LmHIKM v5VqUlSeRGi4IgaT0XWbGmF5BHZxxOfJuVqiRWrEUCu19xz/ijt4uaGj4wDYx/FXJXpKrxKyV8hv 3Q+edW99b7ASKgPmm+7vgKb/LVVCvxZbwquJ5UjGyW+sBlPA7HTKGKtDrhVVFv/Vj9YoKyZEYeqb ANUKhbO9pa6tvpEuTWjaomn98ws0Z0wp2+yK4i4sHtcVJe3UuhMRtZ86Yb8C4xQhGD0uaohpVp6j 3E7mdBPgxP3BEF5EwuQ1lG6HAMV50Ynwv2ZHl/XF3vg2SIua26XpkmkYDMeDpTnunAbctNdEI+ei sEepjEvZxio/RoVyODI1LIcvEMVFAKpqwuLgss8YCvWynl9YgxH4oZhLz9cxeIKmsj2iYZrPNuND rfMqX1/U+zerouL8gChYcY7N5QcgNlGPThMJ0Qs/lAr7vscrlZp72DFR/Mg4MOSG5rCjK9vS34IB cBJ09myymcgNTRDdUZiilwC12ySiVWx6EiJxm6XJ0qV3t7R88us7Yavt/W/wqTzf2pebs4iaxhq8 2e0eqQsXepyNGszf56jl05zd/7B8UWn9LNSTv/FYKje17b000usmDtXD3KZEyVdvgC81NRHRLbG5 oKg= =L6y7 -----END PGP SIGNATURE-----