nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit dd9766c2e025c2df934ae5b8efb934581599e6fd
parent 5b870a7632f14f88eeb2ca2a284ed3dd8f555bd1
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Fri, 16 Feb 2018 11:40:03 +0100

editing: when --smooth is used, make <Enter>-at-bottom scroll one row

When using --smooth or 'set smooth', the screen should scroll the
minimum amount needed to get the cursor back into view.  (The only
exceptions are search, undo, and redo -- when there the cursor goes
offscreen, the cursor line is centered.)

This change brings the behavior of pressing <Enter> on the bottom
row into line with, for example, pasting a single line.  See also
http://lists.gnu.org/archive/html/nano-devel/2018-02/msg00027.html.

Diffstat:
Msrc/text.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/src/text.c b/src/text.c @@ -1070,6 +1070,7 @@ void do_enter(void) #endif refresh_needed = TRUE; + focusing = FALSE; } #ifndef NANO_TINY