diff --git a/src/winio.c b/src/winio.c
index abde66d93a29974238575603ea1d74f8977d70d1..0b923fb5b7c19fe661b705c72d754d474d0a15f9 100644
--- a/src/winio.c
+++ b/src/winio.c
@@ -2565,7 +2565,7 @@ int nanogetstr(bool allow_tabs, const char *buf, const char *curranswer,
     }
 
 #ifndef NANO_SMALL
-    /* Free msgichistory if we need to. */
+    /* Free magichistory if we need to. */
     if (magichistory != NULL)
 	free(magichistory);
 #endif