diff --git a/src/global.c b/src/global.c
index 7c475a93167119f74f9c2cb6d28dd0835b9a1897..14c0006dbb4016c9c3849d22cdd2b7efefc5eb82 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 f0d821bb586c1d82781f2fec519fe7cd0dff4048..f52c01117265585a9ad8df96f4563638cf1ef9f0 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;
     }