From: David Lawrence Ramsey Date: Sat, 22 Apr 2006 18:20:14 +0000 (+0000) Subject: add missing #ifdefs X-Git-Tag: v1.3.12~269 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=d7b804ab6d6b05bade576f72d7ba6012943e7680;p=nano.git add missing #ifdefs git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3409 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- diff --git a/src/global.c b/src/global.c index 7c475a93..14c0006d 100644 --- 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 index f0d821bb..f52c0111 100644 --- 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; }