commit 82492ead4705794b2175ca7fbca4781b2a3e9a77
parent 00713a7c479ffeb88e5ec4b5cd759ef4b7b80196
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Wed, 20 Feb 2019 16:43:03 +0100
tweaks: rename two variables, to be less confusing
Diffstat:
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/winio.c b/src/winio.c
@@ -3526,8 +3526,8 @@ void spotlight_softwrapped(size_t from_col, size_t to_col)
* are FALSE. */
void do_credits(void)
{
- bool had_empty_line = ISSET(EMPTY_LINE);
- bool old_no_help = ISSET(NO_HELP);
+ bool with_empty_line = ISSET(EMPTY_LINE);
+ bool with_help = !ISSET(NO_HELP);
int kbinput = ERR, crpos = 0, xlpos = 0;
const char *credits[CREDIT_LEN] = {
NULL, /* "The nano text editor" */
@@ -3598,7 +3598,7 @@ void do_credits(void)
N_("Thank you for using nano!")
};
- if (had_empty_line || !old_no_help) {
+ if (with_empty_line || with_help) {
UNSET(EMPTY_LINE);
SET(NO_HELP);
window_init();
@@ -3657,9 +3657,9 @@ void do_credits(void)
if (kbinput != ERR)
ungetch(kbinput);
- if (had_empty_line)
+ if (with_empty_line)
SET(EMPTY_LINE);
- if (!old_no_help)
+ if (with_help)
UNSET(NO_HELP);
window_init();