Commit 5f4d7596 authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

tweaks: fix compilation when configured with --enable-tiny

Reported-by: default avatarMike Scalora <mike@scalora.org>
parent ec7b20ee
Showing with 5 additions and 2 deletions
+5 -2
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment