nano

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

commit addac49465f37cc0ec633e78f059e1b28a5f4f93
parent 839d29be3f18d8828d7fb453bc66282ad8edf534
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Mon, 22 Nov 2021 11:13:02 +0100

tweaks: reshuffle some conditions, to have more balanced lines

Diffstat:
Msrc/winio.c | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/winio.c b/src/winio.c @@ -193,9 +193,9 @@ void read_keys_from(WINDOW *win) curs_set(1); #ifndef NANO_TINY - if (currmenu == MMAIN && (spotlighted || ((ISSET(MINIBAR) || ISSET(ZERO) || LINES == 1) && - lastmessage > HUSH && - lastmessage != INFO && lastmessage < ALERT))) { + if (currmenu == MMAIN && (((ISSET(MINIBAR) || ISSET(ZERO) || LINES == 1) && + lastmessage > HUSH && lastmessage < ALERT && + lastmessage != INFO) || spotlighted)) { timed = TRUE; halfdelay(ISSET(QUICK_BLANK) ? 8 : 15); disable_kb_interrupt();