From 410280b0891b7ceaed3e2264cf09e40be458d240 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Sun, 22 Dec 2019 11:28:56 +0100 Subject: [PATCH] build: fix compilation when configured with --disable-justify --- src/text.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/text.c b/src/text.c index 42efdbbc..7389ee18 100644 --- a/src/text.c +++ b/src/text.c @@ -1405,10 +1405,14 @@ bool do_wrap(void) /* The line to be wrapped, if needed and possible. */ size_t line_len = strlen(line->data); /* The length of this line. */ +#ifdef ENABLE_JUSTIFY size_t quot_len = quote_length(line->data); /* The length of the quoting part of this line. */ size_t lead_len = quot_len + indent_length(line->data + quot_len); /* The length of the quoting part plus subsequent whitespace. */ +#else + size_t lead_len = indent_length(line->data); +#endif size_t cursor_x = openfile->current_x; /* The current cursor position, for comparison with the wrap point. */ ssize_t wrap_loc;