commit d7b804ab6d6b05bade576f72d7ba6012943e7680
parent 3ea0b1d6d8a3c3883845ea6de0f45ba3a160d012
Author: David Lawrence Ramsey <pooka109@gmail.com>
Date: Sat, 22 Apr 2006 18:20:14 +0000
add missing #ifdefs
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3409 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
Diffstat:
2 files changed, 9 insertions(+), 1 deletion(-)
diff --git a/src/global.c b/src/global.c
@@ -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. */
diff --git a/src/winio.c b/src/winio.c
@@ -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;
}