diff --git a/src/nano.c b/src/nano.c index fd439aa404a69edfb7f66e05a6d73d13a596c998..57dd7babcc24cb124960b9659cb47c214a498dc9 100644 --- a/src/nano.c +++ b/src/nano.c @@ -1198,6 +1198,7 @@ void do_delete(void) if (current_x < mark_beginx && mark_beginbuf == current) mark_beginx -= char_len; #endif + totsize -= char_len; } else if (current != filebot && (current->next != filebot || current->data[0] == '\0')) { /* We can delete the line before filebot only if it is blank: it