nano

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

commit 7be493047ce861ea471b50cdad429af520adec4d
parent 54c2f6b5aeb8c86125f664640a031a9aef4d8c48
Author: Benno Schulenberg <bensberg@justemail.net>
Date:   Wed, 11 Nov 2015 19:15:36 +0000

Oops!  Blackout!


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5402 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

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

diff --git a/src/text.c b/src/text.c @@ -764,6 +764,8 @@ void do_enter() assert(openfile->current != NULL && openfile->current->data != NULL); #ifndef NANO_TINY + add_undo(ENTER); + /* Do auto-indenting, like the neolithic Turbo Pascal editor. */ if (ISSET(AUTOINDENT)) { /* If we are breaking the line in the indentation, the new @@ -806,6 +808,10 @@ void do_enter() openfile->placewewant = xplustabs(); +#ifndef NANO_TINY + update_undo(ENTER); +#endif + edit_refresh_needed = TRUE; }