commit 5f4d759679e8331c14b5f4b35d1a40abfdd204a3
parent ec7b20eec67587ffb3ea5834843b386294d32248
Author: Benno Schulenberg <bensberg@justemail.net>
Date: Mon, 6 Jun 2016 19:57:51 +0200
tweaks: fix compilation when configured with --enable-tiny
Reported-by: Mike Scalora <mike@scalora.org>
Diffstat:
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/src/text.c b/src/text.c
@@ -137,10 +137,13 @@ void do_deletion(undo_type action)
strlen(openfile->current->data) + strlen(foo->data) + 1);
strcat(openfile->current->data, foo->data);
- /* Adjust the file size, and remember it for a possible redo. */
- openfile->current_undo->newsize = --(openfile->totsize);
+ /* Adjust the file size. */
+ openfile->totsize--;
#ifndef NANO_TINY
+ /* Remember the new file size for a possible redo. */
+ openfile->current_undo->newsize = openfile->totsize;
+
if (openfile->mark_set &&
openfile->mark_begin == openfile->current->next) {
openfile->mark_begin = openfile->current;