From 527c6c1ca0d07a7edf6feda324782cceb1d8f882 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Thu, 16 May 2019 16:04:12 +0200 Subject: [PATCH] tweaks: reshuffle a few lines, to be more straightforward --- src/nano.c | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/src/nano.c b/src/nano.c index b5f91518..1cf525df 100644 --- a/src/nano.c +++ b/src/nano.c @@ -1344,18 +1344,18 @@ void do_toggle(int flag) } TOGGLE(flag); + focusing = FALSE; switch (flag) { + case NO_HELP: + window_init(); + total_refresh(); + break; #ifdef ENABLE_MOUSE case USE_MOUSE: mouse_init(); break; #endif - case NO_HELP: - window_init(); - focusing = FALSE; - total_refresh(); - break; case SUSPEND: signal_init(); break; @@ -1363,15 +1363,16 @@ void do_toggle(int flag) if (!ISSET(SOFTWRAP)) openfile->firstcolumn = 0; refresh_needed = TRUE; - focusing = FALSE; break; case WHITESPACE_DISPLAY: - titlebar(NULL); /* Fall through. */ -#ifdef ENABLE_COLOR - case NO_COLOR_SYNTAX: -#endif + titlebar(NULL); refresh_needed = TRUE; break; +#ifdef ENABLE_COLOR + case NO_COLOR_SYNTAX: + refresh_needed = TRUE; + break; +#endif } enabled = ISSET(flag);