]> git.wh0rd.org Git - nano.git/commitdiff
- winio.c:nanogetstr() - Remove unnecessary reset of x since it is now handled elsewh...
authorChris Allegretta <chrisa@asty.org>
Sat, 8 Feb 2003 21:49:13 +0000 (21:49 +0000)
committerChris Allegretta <chrisa@asty.org>
Sat, 8 Feb 2003 21:49:13 +0000 (21:49 +0000)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1433 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

ChangeLog
winio.c

index 41953df0e581e05f4054eac0acc868158846e9d7..2ccc237f3d3556cc708938b85e946049c799eb3d 100644 (file)
--- 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 (file)
--- 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;
            }
        }