diff --git a/src/global.c b/src/global.c
index 85e33e834bf90f839f0a405e059a886704fd5dac..ce6dd575b87966084f636d77cbb1e4ec184ad859 100644
--- a/src/global.c
+++ b/src/global.c
@@ -617,7 +617,7 @@ void shortcut_init(bool unjustify)
 	NANO_NO_KEY, NANO_NO_KEY, NOVIEW, do_full_justify);
 #endif
 
-#if defined(HAVE_REGEX_H) && !defined(NANO_SMALL)
+#if !defined(NANO_SMALL) && defined(HAVE_REGEX_H)
     sc_init_one(&main_list, NANO_NO_KEY, N_("Find Other Bracket"),
 	IFHELP(nano_bracket_msg, NANO_BRACKET_KEY), NANO_NO_KEY,
 	NANO_NO_KEY, VIEW, do_find_bracket);
diff --git a/src/nano.c b/src/nano.c
index d319004fb335069e5d9603ba2d036cc1e9201711..c76a9347187e754b95f282c58cb7cf5a9b05e622 100644
--- a/src/nano.c
+++ b/src/nano.c
@@ -4109,9 +4109,6 @@ int main(int argc, char **argv)
 	{"multibuffer", 0, NULL, 'F'},
 #endif
 #ifdef ENABLE_NANORC
-#ifndef NANO_SMALL
-	{"historylog", 0, NULL, 'H'},
-#endif
 	{"ignorercfiles", 0, NULL, 'I'},
 #endif
 	{"morespace", 0, NULL, 'O'},
@@ -4151,6 +4148,7 @@ int main(int argc, char **argv)
 	{"backup", 0, NULL, 'B'},
 	{"backupdir", 1, NULL, 'C'},
 	{"tabstospaces", 0, NULL, 'E'},
+	{"historylog", 0, NULL, 'H'},
 	{"noconvert", 0, NULL, 'N'},
 	{"smooth", 0, NULL, 'S'},
 	{"restricted", 0, NULL, 'Z'},