From: Chris Allegretta Date: Wed, 24 Oct 2001 15:25:41 +0000 (+0000) Subject: Back out off by one fix that's not actually off by one, it was a different bug :-) X-Git-Tag: v1.0.6~9 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=40b93debbc083b9b0896bb8f0a9fc86d65a5ec1a;p=nano.git Back out off by one fix that's not actually off by one, it was a different bug :-) git-svn-id: svn://svn.savannah.gnu.org/nano/branches/nano_1_0_branch/nano@877 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- diff --git a/ChangeLog b/ChangeLog index 7c46497c..42a88e41 100644 --- a/ChangeLog +++ b/ChangeLog @@ -14,8 +14,6 @@ CVS code - move to the previous word in the file. - Added #ifdef NANO_SMALL around do_next_space and do_prev_space codes, as nano-tiny doesn't particularly need those features. - main() - - Fixed off-by-one error on MAIN_LIST_LEN loop search. - nano.texi: - Backported fix from 1.1 for Mouse Toggle. - po/de.po: diff --git a/nano.c b/nano.c index 4212d0e4..b7427ec8 100644 --- a/nano.c +++ b/nano.c @@ -2692,7 +2692,7 @@ int main(int argc, char *argv[]) /* Look through the main shortcut list to see if we've hit a shortcut key */ - for (i = 0; i < MAIN_LIST_LEN - 1 && !keyhandled; i++) { + for (i = 0; i < MAIN_LIST_LEN && !keyhandled; i++) { if (kbinput == main_list[i].val || (main_list[i].misc1 && kbinput == main_list[i].misc1) || (main_list[i].misc2 && kbinput == main_list[i].misc2)) {