From: Chris Allegretta Date: Mon, 28 Jan 2002 16:02:03 +0000 (+0000) Subject: Update 1.0 tree for Yesterdy's commit X-Git-Tag: v1.0.9~20 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=d50a33f19ca6853ced7cc62410a3f9644336d00e;p=nano.git Update 1.0 tree for Yesterdy's commit git-svn-id: svn://svn.savannah.gnu.org/nano/branches/nano_1_0_branch/nano@1053 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- diff --git a/BUGS b/BUGS index e7479f96..26ac5c08 100644 --- a/BUGS +++ b/BUGS @@ -132,7 +132,8 @@ Corsi) (67) [FIXED]. - ^C does not work after a suspend in tcsh (discovered by Trevor Cordes) (68) [FIXED]. - +- Home and End control keys (^A, ^E) do not always work in filename + prompt (bug found by Ian Turner) (69) [FIXED]. ** Open BUGS ** diff --git a/ChangeLog b/ChangeLog index 69e43712..4160d7a4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,8 @@ CVS code - +- winio.c: + nanogetstr() + - Add NANO_HOME_KEY and NANO_END_KEY to the home and + end key code (fixes BUG #69). - THANKS: - Added missing entry for Eivind Kjørstad. - po/no.po: diff --git a/winio.c b/winio.c index 9cb6410c..e468cae6 100644 --- a/winio.c +++ b/winio.c @@ -303,16 +303,17 @@ int nanogetstr(int allowtabs, char *buf, char *def, shortcut s[], int slen, #endif break; case KEY_HOME: + case NANO_HOME_KEY: x = x_left; nanoget_repaint(buf, inputbuf, x); break; case KEY_END: + case NANO_END_KEY: x = x_left + strlen(inputbuf); nanoget_repaint(buf, inputbuf, x); break; case KEY_RIGHT: case NANO_FORWARD_KEY: - if (x < xend) x++; wmove(bottomwin, 0, x);