formatting and cosmetic fixes

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2144 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
master
David Lawrence Ramsey 2004-11-27 16:54:00 +00:00
parent c109549a7e
commit 62a217d35d
1 changed files with 20 additions and 21 deletions

View File

@ -3320,35 +3320,34 @@ void do_toggle(const toggle *which)
{
bool enabled;
/* Even easier! */
TOGGLE(which->flag);
switch (which->val) {
case TOGGLE_SUSPEND_KEY:
signal_init();
break;
case TOGGLE_SUSPEND_KEY:
signal_init();
break;
#ifndef DISABLE_MOUSE
case TOGGLE_MOUSE_KEY:
mouse_init();
break;
case TOGGLE_MOUSE_KEY:
mouse_init();
break;
#endif
case TOGGLE_NOHELP_KEY:
blank_statusbar();
blank_bottombars();
wrefresh(bottomwin);
window_init();
edit_refresh();
display_main_list();
break;
case TOGGLE_NOHELP_KEY:
blank_statusbar();
blank_bottombars();
wrefresh(bottomwin);
window_init();
edit_refresh();
display_main_list();
break;
#ifdef ENABLE_COLOR
case TOGGLE_SYNTAX_KEY:
edit_refresh();
break;
case TOGGLE_SYNTAX_KEY:
edit_refresh();
break;
#endif
#ifdef ENABLE_NANORC
case TOGGLE_WHITESPACE_KEY:
edit_refresh();
break;
case TOGGLE_WHITESPACE_KEY:
edit_refresh();
break;
#endif
}