From bfc8b2ac4de4c4c1810433bcaded94c8f1b92a6b Mon Sep 17 00:00:00 2001
From: Chris Allegretta <chrisa@asty.org>
Date: Sat, 8 Feb 2003 21:49:13 +0000
Subject: [PATCH] - winio.c:nanogetstr() - Remove unnecessary reset of x since
 it is now handled elsewhere (David Lawrence Ramsey)

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1433 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
---
 ChangeLog | 4 ++++
 winio.c   | 4 ----
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 41953df0..2ccc237f 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 4e3e7b4d..bc3062fc 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;
 	    }
 	}
-- 
GitLab