add missing #ifdefs
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3409 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
Этот коммит содержится в:
родитель
3ea0b1d6d8
Коммит
d7b804ab6d
@ -1243,9 +1243,11 @@ void toggle_init(void)
|
||||
NO_COLOR_SYNTAX);
|
||||
#endif
|
||||
|
||||
#ifndef DISABLE_HELP
|
||||
/* This entry is blank, in order to make the help text easier to
|
||||
* read. */
|
||||
toggle_init_one(TOGGLE_NO_KEY, NULL, 0);
|
||||
#endif
|
||||
|
||||
toggle_init_one(TOGGLE_SMARTHOME_KEY, N_("Smart home key"),
|
||||
SMART_HOME);
|
||||
@ -1263,9 +1265,11 @@ void toggle_init(void)
|
||||
toggle_init_one(TOGGLE_TABSTOSPACES_KEY,
|
||||
N_("Conversion of typed tabs to spaces"), TABS_TO_SPACES);
|
||||
|
||||
#ifndef DISABLE_HELP
|
||||
/* This entry is blank, in order to make the help text easier to
|
||||
* read. */
|
||||
toggle_init_one(TOGGLE_NO_KEY, NULL, 0);
|
||||
#endif
|
||||
|
||||
/* If we're using restricted mode, the backup toggle is disabled.
|
||||
* It's useless since backups are disabled. */
|
||||
|
@ -1713,7 +1713,11 @@ const toggle *get_toggle(int kbinput, bool meta_key)
|
||||
for (; t != NULL; t = t->next) {
|
||||
/* We've found a toggle if the key exists, meta_key is TRUE, and
|
||||
* the key is in the meta key toggle list. */
|
||||
if (t->val != TOGGLE_NO_KEY && meta_key && kbinput == t->val)
|
||||
if (
|
||||
#ifndef DISABLE_HELP
|
||||
t->val != TOGGLE_NO_KEY &&
|
||||
#endif
|
||||
meta_key && kbinput == t->val)
|
||||
break;
|
||||
}
|
||||
|
||||
|
Загрузка…
Ссылка в новой задаче
Block a user