From c8a9a965789d1c69fe1dce74cd03af3fd0723f83 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Mon, 28 May 2018 09:57:24 +0200 Subject: [PATCH] build: fix compilation when configured with --disable-justify --- src/text.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/text.c b/src/text.c index 8d582469..4197ab48 100644 --- a/src/text.c +++ b/src/text.c @@ -1032,12 +1032,13 @@ void do_enter(void) bool allblanks = FALSE; if (ISSET(AUTOINDENT)) { +#ifdef ENABLE_JUSTIFY /* If the next line is in this same paragraph, use its indentation * as the model, as it is more likely to be what the user wants. */ if (openfile->current->next && inpar(openfile->current->next) && !begpar(openfile->current->next, 0)) sampleline = openfile->current->next; - +#endif extra = indent_length(sampleline->data); /* If we are breaking the line in the indentation, limit the new @@ -1047,7 +1048,7 @@ void do_enter(void) else if (extra == openfile->current_x) allblanks = TRUE; } -#endif +#endif /* NANO_TINY */ newnode->data = charalloc(strlen(openfile->current->data + openfile->current_x) + extra + 1); strcpy(&newnode->data[extra], openfile->current->data +