diff --git a/src/utils.c b/src/utils.c
index 2501568d63f99b94c36f0da9c37e12bc42454d42..22b852e8be802563a95a501a34117fca41223698 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -441,7 +441,8 @@ void new_magicline(void)
 }
 
 #ifndef NANO_SMALL
-/* Remove the magicline from filebot, if there is one. */
+/* Remove the magicline from filebot, if there is one and it isn't the
+ * only line in the file. */
 void remove_magicline(void)
 {
     if (filebot->data[0] == '\0' && filebot->prev != NULL) {