diff --git a/src/text.c b/src/text.c index b219281e..8134d816 100644 --- a/src/text.c +++ b/src/text.c @@ -1829,8 +1829,10 @@ void do_justify(bool full_justify) * last line of the file, so put the cursor at the end of it. */ if (!find_paragraph(&openfile->current, &linecount)) { openfile->current_x = strlen(openfile->filebot->data); - refresh_needed = TRUE; +#ifndef NANO_TINY discard_until(openfile->undotop->next); +#endif + refresh_needed = TRUE; return; }