From 70d59ffe164f22435a26b517ea5f412fd392fb76 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Thu, 5 Mar 2020 13:28:20 +0100 Subject: [PATCH] tweaks: remove a redundant assignment Consecutive additions all happen on the same line. When automatic hard-wrapping occurs, the ADD item is grouped together with an ENTER item, and subsequent additions go into a new ADD item. --- src/text.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/text.c b/src/text.c index 8d9e418d..a6df82e5 100644 --- a/src/text.c +++ b/src/text.c @@ -1285,7 +1285,6 @@ void update_undo(undo_type action) u->strdata = charealloc(u->strdata, newlen + 1); strncpy(u->strdata, openfile->current->data + u->head_x, newlen); u->strdata[newlen] = '\0'; - u->tail_lineno = openfile->current->lineno; u->tail_x = openfile->current_x; break; case ENTER: