From d44a005e3dc72dd4e1bb38f08ccdd539258e2127 Mon Sep 17 00:00:00 2001 From: David Lawrence Ramsey Date: Fri, 18 Mar 2005 05:20:54 +0000 Subject: [PATCH] make the #ifdef around indent_len() match that of its prototype, so that we can compile with NANO_SMALL and !DISABLE_JUSTIFY again; also add a comment fix git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2390 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- src/nano.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/nano.c b/src/nano.c index 5369a7e7..2f843c15 100644 --- a/src/nano.c +++ b/src/nano.c @@ -2323,7 +2323,7 @@ void do_spell(void) } #endif /* !DISABLE_SPELLER */ -#ifndef NANO_SMALL +#if !defined(NANO_SMALL) || !defined(DISABLE_JUSTIFY) /* The "indentation" of a line is the whitespace between the quote part * and the non-whitespace of the line. */ size_t indent_length(const char *line) @@ -2350,7 +2350,7 @@ size_t indent_length(const char *line) return len; } -#endif /* !NANO_SMALL */ +#endif /* !NANO_SMALL || !DISABLE_JUSTIFY */ #ifndef DISABLE_JUSTIFY /* justify_format() replaces blanks with spaces and multiple spaces by 1 @@ -3030,7 +3030,7 @@ void do_justify(bool full_justify) totsize -= indent_len; /* We're just about to tack the next line onto this one. If - * this line isn't blank, make sure it ends in a space. */ + * this line isn't empty, make sure it ends in a space. */ if (line_len > 0 && current->data[line_len - 1] != ' ') { line_len++; current->data = charealloc(current->data, line_len + 1); -- 2.39.5