Commit d7b804ab authored by David Lawrence Ramsey's avatar David Lawrence Ramsey
Browse files

add missing #ifdefs

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3409 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
parent 3ea0b1d6
No related merge requests found
Showing with 9 additions and 1 deletion
+9 -1
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment