nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit f0e69b4a5197c394739bacc0cf1f077590b766e9
parent 4a915b1ed581967350591c67965374f90e673030
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Sat,  6 Jan 2024 17:18:40 +0100

tweaks: use a pair of parentheses to clarify the order of operations

(Parentheses are used everywhere else with a bitwise &.)

Diffstat:
Msrc/rcfile.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/rcfile.c b/src/rcfile.c @@ -1353,7 +1353,7 @@ static void check_vitals_mapped(void) for (int v = 0; v < VITALS; v++) { for (funcstruct *f = allfuncs; f != NULL; f = f->next) { - if (f->func == vitals[v] && f->menus & inmenus[v]) { + if (f->func == vitals[v] && (f->menus & inmenus[v])) { if (first_sc_for(inmenus[v], f->func) == NULL) { jot_error(N_("No key is bound to function '%s' in menu '%s'. " " Exiting.\n"), f->tag, menu_to_name(inmenus[v]));