diff --git a/src/rcfile.c b/src/rcfile.c
index a570952cb9b9aa709f3b6cd331a96c305394daf2..af8c75dc4646916a2a9681ade00dd88df7e6717d 100644
--- a/src/rcfile.c
+++ b/src/rcfile.c
@@ -1143,8 +1143,10 @@ void parse_rcfile(FILE *rcstream
 		rcfile_error(N_("Requested fill size \"%s\" is invalid"),
 				option);
 		wrap_at = -CHARS_FROM_EOL;
-	    } else
+	    } else {
+		UNSET(NO_WRAP);
 		free(option);
+	    }
 	} else
 #endif
 #ifndef NANO_TINY