diff --git a/src/winio.c b/src/winio.c
index 72854df1bc1bf286f6f36a3f5fd65ef0043c7a71..1f3bc90ea0a307ea282a462aa5023a70edd583ef 100644
--- a/src/winio.c
+++ b/src/winio.c
@@ -2448,12 +2448,12 @@ int nanogetstr(bool allow_tabs, const char *buf, const char *curranswer,
 #endif
 #if !defined(NANO_SMALL) && defined(ENABLE_NANORC)
 #ifndef DISABLE_TABCOMP
+    int last_kbinput = ERR;
+	/* The key we pressed before the current key. */
     size_t complete_len = 0;
 	/* The length of the original string that we're trying to
 	 * tab complete, if any. */
 #endif
-    int last_kbinput = ERR;
-	/* The key we pressed before the current key. */
     char *history = NULL;
 	/* The current history string. */
     char *magichistory = NULL;