commit 70d59ffe164f22435a26b517ea5f412fd392fb76
parent fb4bcd8cfd17e88da4a72b807a83b2fc5304907a
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Thu, 5 Mar 2020 13:28:20 +0100
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.
Diffstat:
1 file changed, 0 insertions(+), 1 deletion(-)
diff --git 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: