nano

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

commit 2656f543f488401e2ee500b1b4cb17afb472457f
parent ba79602281a1a901867472f218cf10eb1d60cff9
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Sun, 13 Oct 2019 17:31:53 +0200

undo: don't try to copy a string that doesn't exist

This fixes https://savannah.gnu.org/bugs/?57051.

Bug existed since commit d256d0cb from earlier today.

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

diff --git a/src/text.c b/src/text.c @@ -1226,6 +1226,7 @@ void add_undo(undo_type action, const char *message) u->lineno += cutbottom->lineno - cutbuffer->lineno; break; case INSERT: + break; case COUPLE_BEGIN: u->mark_begin_lineno = openfile->current_y; case COUPLE_END: