diff --git a/src/nano.c b/src/nano.c index 5d36b3c914e773acfd6ab6337b98c7545289b021..6acd79a6693c03d5a1306d51f87e7b339180081e 100644 --- a/src/nano.c +++ b/src/nano.c @@ -3587,13 +3587,14 @@ void do_toggle(const toggle *which) #endif } - /* We are assuming here that shortcut_init() above didn't free and - * reallocate the toggles. */ enabled = ISSET(which->flag); - if (which->val == TOGGLE_NOHELP_KEY || which->val == TOGGLE_WRAP_KEY) + + if (which->val == TOGGLE_NOHELP_KEY || + which->val == TOGGLE_WRAP_KEY) enabled = !enabled; - statusbar("%s %s", which->desc, - enabled ? _("enabled") : _("disabled")); + + statusbar("%s %s", which->desc, enabled ? _("enabled") : + _("disabled")); } #endif /* !NANO_SMALL */