Re: [PATCH] new feature: horizontal scrolling of full screen

Chris Allegretta via "Development discussions." <[email protected]> Tue, 6 Jan 2026 17:02:10 -0500
Newsgroups gmane.editors.nano.devel
Message-ID <[email protected]>
On Tue, Jan 06, 2026 at 02:03:01AM +0000, Xylia Allegretta wrote:
> Well, okay. I've modified the patch to scroll in steps of 8 characters, but it
> could easily be changed later to be entirely smooth, I guess. It might be
> worth additionally changing the distance from the side of the screen that
> causes scrolling. I've also added some more checks and made a screen
> refresh call the function to update the scroll position if it hadn't
> been already.
> It seems like undo/redo, return, cut/uncut, the help text, and the mouse
> are working better now.

I have to admit now that I've tried the patch out, that scrolling >1 char 
does seem a little weird, since smooth scrolling vertically is the 
default.

How about the following: 
- By default, scroll horizontally by 1 
- If JUMPY_SCROLLING is set, scroll by some other value, 8, COLS/2, or 
what have you.... Seems to me like someone who's enabled jumpy scrolling 
is ok with large movements of the screen, and doesn't mind (or prefers) 
recalibrating what they're looking at after a lot of the text has moved. 
This would be logically consistent with that.

Or as Peter suggested, the flag/rc entry could take an argument. But I 
think the default should indeed be 1.