build: fix compilation for --enable-tiny --enable-justify

master
Benno Schulenberg 2020-03-22 13:41:28 +01:00
parent 481529e865
commit 71628ad0b8
1 changed files with 3 additions and 1 deletions

View File

@ -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;
}