diff --git a/ChangeLog b/ChangeLog
index db0d106759abbe54b402808c25dffe2b31aae586..d7ad7c536f6d48d5b6396f36354063199b5aba92 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -7,6 +7,8 @@
 	* src/files.c: Fix compilation with --enable-tiny --enable-browser.
 	* doc/man/nano.1, doc/texinfo/nano.texi: History logging no longer
 	depends upon nanorc support, plus many other tweaks.
+	* src/global.c (strtosc): Fix compilation with --enable-tiny
+	--enable-histories --enable-nanorc.
 
 2014-06-19  Benno Schulenberg  <bensberg@justemail.net>
 	* src/nano.c (window_init): Rename 'no_more_space()' to 'more_space()'
diff --git a/src/global.c b/src/global.c
index cd97dd83e17d395d40e8e653297d46d672bf6a2d..86151f9e1822500f1a38f19320468c8534b51e3b 100644
--- a/src/global.c
+++ b/src/global.c
@@ -1325,19 +1325,20 @@ sc *strtosc(char *input)
 	s->scfunc = do_wordlinechar_count;
     else if (!strcasecmp(input, "undo"))
 	s->scfunc = do_undo;
-    else if (!strcasecmp(input, "redo")) {
+    else if (!strcasecmp(input, "redo"))
 	s->scfunc = do_redo;
 #endif
 #ifndef DISABLE_HISTORIES
-    } else if (!strcasecmp(input, "prevhistory")) {
+    else if (!strcasecmp(input, "prevhistory")) {
 	s->scfunc = get_history_older_void;
 	s->execute = FALSE;
     } else if (!strcasecmp(input, "nexthistory")) {
 	s->scfunc = get_history_newer_void;
 	s->execute = FALSE;
+    }
 #endif
 #ifndef NANO_TINY
-    } else if (!strcasecmp(input, "nohelp")) {
+    else if (!strcasecmp(input, "nohelp")) {
 	s->scfunc = do_toggle_void;
 	s->execute = FALSE;
 	s->toggle = NO_HELP;