diff --git a/src/text.c b/src/text.c
index 2bafa7f5d94b1a516e5c29b57dbc9f138afde73a..28c26d59008f5b5b1f78a35aafe932dbb25fff21 100644
--- a/src/text.c
+++ b/src/text.c
@@ -3037,7 +3037,9 @@ void do_linter(void)
 		return;
 	}
 
+#ifndef NANO_TINY
 	openfile->mark = NULL;
+#endif
 	edit_refresh();
 
 	if (openfile->modified) {