mirror of
git://git.sv.gnu.org/nano.git
synced 2025-01-15 22:09:20 +03:00
tweaks: use two symbolic names instead of TRUE and FALSE, for clarity
This commit is contained in:
parent
b1e5f9d9a8
commit
7c53b133a1
@ -1704,6 +1704,9 @@ void justify_paragraph(linestruct **line, size_t count)
|
|||||||
free(lead_string);
|
free(lead_string);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#define ONE_PARAGRAPH FALSE
|
||||||
|
#define WHOLE_BUFFER TRUE
|
||||||
|
|
||||||
/* Justify the current paragraph, or the entire buffer when full_justify is
|
/* 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. */
|
* TRUE. But if the mark is on, justify only the marked text instead. */
|
||||||
void do_justify(bool full_justify)
|
void do_justify(bool full_justify)
|
||||||
@ -1978,13 +1981,13 @@ void do_justify(bool full_justify)
|
|||||||
/* Justify the current paragraph. */
|
/* Justify the current paragraph. */
|
||||||
void do_justify_void(void)
|
void do_justify_void(void)
|
||||||
{
|
{
|
||||||
do_justify(FALSE);
|
do_justify(ONE_PARAGRAPH);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Justify the entire file. */
|
/* Justify the entire file. */
|
||||||
void do_full_justify(void)
|
void do_full_justify(void)
|
||||||
{
|
{
|
||||||
do_justify(TRUE);
|
do_justify(WHOLE_BUFFER);
|
||||||
ran_a_tool = TRUE;
|
ran_a_tool = TRUE;
|
||||||
}
|
}
|
||||||
#endif /* ENABLE_JUSTIFY */
|
#endif /* ENABLE_JUSTIFY */
|
||||||
|
Loading…
Reference in New Issue
Block a user