commit 71628ad0b8624800fff8b4a57fab7312436560fd
parent 481529e8650d105c3280def764e4917af0cabb49
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Sun, 22 Mar 2020 13:41:28 +0100
build: fix compilation for --enable-tiny --enable-justify
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git 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;
}