commit 7c53b133a1b0f842152093348823b991f06c5e7c
parent b1e5f9d9a895a6b003ee478247f8903ad788d6ca
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Sun, 13 Jun 2021 12:06:24 +0200
tweaks: use two symbolic names instead of TRUE and FALSE, for clarity
Diffstat:
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/src/text.c b/src/text.c
@@ -1704,6 +1704,9 @@ void justify_paragraph(linestruct **line, size_t count)
free(lead_string);
}
+#define ONE_PARAGRAPH FALSE
+#define WHOLE_BUFFER TRUE
+
/* Justify the current paragraph, or the entire buffer when full_justify is
* TRUE. But if the mark is on, justify only the marked text instead. */
void do_justify(bool full_justify)
@@ -1978,13 +1981,13 @@ void do_justify(bool full_justify)
/* Justify the current paragraph. */
void do_justify_void(void)
{
- do_justify(FALSE);
+ do_justify(ONE_PARAGRAPH);
}
/* Justify the entire file. */
void do_full_justify(void)
{
- do_justify(TRUE);
+ do_justify(WHOLE_BUFFER);
ran_a_tool = TRUE;
}
#endif /* ENABLE_JUSTIFY */