tweaks: reshuffle a few lines, to be more straightforward
parent
a9e8f88e77
commit
527c6c1ca0
21
src/nano.c
21
src/nano.c
|
@ -1344,18 +1344,18 @@ void do_toggle(int flag)
|
||||||
}
|
}
|
||||||
|
|
||||||
TOGGLE(flag);
|
TOGGLE(flag);
|
||||||
|
focusing = FALSE;
|
||||||
|
|
||||||
switch (flag) {
|
switch (flag) {
|
||||||
|
case NO_HELP:
|
||||||
|
window_init();
|
||||||
|
total_refresh();
|
||||||
|
break;
|
||||||
#ifdef ENABLE_MOUSE
|
#ifdef ENABLE_MOUSE
|
||||||
case USE_MOUSE:
|
case USE_MOUSE:
|
||||||
mouse_init();
|
mouse_init();
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
case NO_HELP:
|
|
||||||
window_init();
|
|
||||||
focusing = FALSE;
|
|
||||||
total_refresh();
|
|
||||||
break;
|
|
||||||
case SUSPEND:
|
case SUSPEND:
|
||||||
signal_init();
|
signal_init();
|
||||||
break;
|
break;
|
||||||
|
@ -1363,15 +1363,16 @@ void do_toggle(int flag)
|
||||||
if (!ISSET(SOFTWRAP))
|
if (!ISSET(SOFTWRAP))
|
||||||
openfile->firstcolumn = 0;
|
openfile->firstcolumn = 0;
|
||||||
refresh_needed = TRUE;
|
refresh_needed = TRUE;
|
||||||
focusing = FALSE;
|
|
||||||
break;
|
break;
|
||||||
case WHITESPACE_DISPLAY:
|
case WHITESPACE_DISPLAY:
|
||||||
titlebar(NULL); /* Fall through. */
|
titlebar(NULL);
|
||||||
#ifdef ENABLE_COLOR
|
|
||||||
case NO_COLOR_SYNTAX:
|
|
||||||
#endif
|
|
||||||
refresh_needed = TRUE;
|
refresh_needed = TRUE;
|
||||||
break;
|
break;
|
||||||
|
#ifdef ENABLE_COLOR
|
||||||
|
case NO_COLOR_SYNTAX:
|
||||||
|
refresh_needed = TRUE;
|
||||||
|
break;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
enabled = ISSET(flag);
|
enabled = ISSET(flag);
|
||||||
|
|
Loading…
Reference in New Issue