From: Chris Allegretta Date: Sat, 8 Feb 2003 21:49:13 +0000 (+0000) Subject: - winio.c:nanogetstr() - Remove unnecessary reset of x since it is now handled elsewh... X-Git-Tag: v1.1.99pre3~35 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=bfc8b2ac4de4c4c1810433bcaded94c8f1b92a6b;p=nano.git - 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 --- 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; } }