diff --git a/src/proto.h b/src/proto.h index 61fdc824..a6f47f84 100644 --- a/src/proto.h +++ b/src/proto.h @@ -531,7 +531,7 @@ bool do_wrap(void); #if defined(ENABLE_HELP) || defined(ENABLED_WRAPORJUSTIFY) ssize_t break_line(const char *line, ssize_t goal, bool snap_at_nl); #endif -#if !defined(NANO_TINY) || defined(ENABLE_JUSTIFY) +#if !defined(NANO_TINY) || defined(ENABLED_WRAPORJUSTIFY) size_t indent_length(const char *line); #endif #ifdef ENABLE_JUSTIFY diff --git a/src/text.c b/src/text.c index 7389ee18..118d9994 100644 --- a/src/text.c +++ b/src/text.c @@ -1622,7 +1622,7 @@ ssize_t break_line(const char *line, ssize_t goal, bool snap_at_nl) } #endif /* ENABLE_HELP || ENABLED_WRAPORJUSTIFY */ -#if !defined(NANO_TINY) || defined(ENABLE_JUSTIFY) +#if !defined(NANO_TINY) || defined(ENABLED_WRAPORJUSTIFY) /* Return the length of the indentation part of the given line. The * "indentation" of a line is the leading consecutive whitespace. */ size_t indent_length(const char *line) @@ -1643,7 +1643,7 @@ size_t indent_length(const char *line) return len; } -#endif /* !NANO_TINY || ENABLE_JUSTIFY */ +#endif #ifdef ENABLE_JUSTIFY /* Copy a character from one place to another. */