diff --git a/ChangeLog b/ChangeLog
index d97d62a12ca8bf872b5c996364ad478f6c536536..9224a437433d599670f3315c233b3c62a6874785 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -33,7 +33,8 @@ CVS code -
 	- New function do_prev_word, similar to do_next_word.  Hard coded as
 	  Alt-space, as next word is hard coded as control-space. Fixed
 	  goofy logic setting x pos to value of last line when hitting the
-	  beginning of first line, prog should simply abort.
+	  beginning of first line, prog should simply abort.  Added
+	  the #ifdefs around the code in main().
 - rcfile.c:
 	- Fix incorrect number of rc options (David Lawrence Ramsey).
 - po/sv.po:
diff --git a/nano.c b/nano.c
index f709bd9fdef3cbd148d193fab2ab827f3770406f..87d16a5391f2b24e0ecec674b8eefd6fd3facdab 100644
--- a/nano.c
+++ b/nano.c
@@ -2954,11 +2954,13 @@ int main(int argc, char *argv[])
 		modify_control_seq = 1;
 		keyhandled = 1;
 		break;
+#ifndef NANO_SMALL
 	    case ' ':
 		/* If control-space is next word, Alt-space should be previous word */
 		do_prev_word();
 		keyhandled = 1;
 		break;
+#endif
 	    case '[':
 		switch (kbinput = wgetch(edit)) {
 		case '1':	/* Alt-[-1-[0-5,7-9] = F1-F8 in X at least */