diff --git a/ChangeLog b/ChangeLog
index 41953df0e581e05f4054eac0acc868158846e9d7..2ccc237f3d3556cc708938b85e946049c799eb3d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -19,6 +19,10 @@ CVS code
 	  (David Benbennick).
   colortoint, parse_colors()
 	- Don't add strings with invalid fg colors at all.
+- winio.c:
+  nanogetstr()
+	- Remove unnecessary reset of x since it is now handled
+	  elsewhere (David Lawrence Ramsey).
 - nano.1, nano.1.html:
 	- Add initialization file comments, change some options from 
 	  bracketed to underlined to emphasize that they are not 
diff --git a/winio.c b/winio.c
index 4e3e7b4dd69325f1d4a670ff32971aefe1ae7d1b..bc3062fca1b97f3cc43e116ce22264343da4ac03 100644
--- a/winio.c
+++ b/winio.c
@@ -256,10 +256,6 @@ int nanogetstr(int allowtabs, const char *buf, const char *def,
 		}
 #endif
 
-		/* We canceled putting in an answer; reset x */
-		if (kbinput == NANO_CANCEL_KEY)
-		    x = -1;
-
 		return t->val;
 	    }
 	}