]> git.wh0rd.org Git - nano.git/commitdiff
Back out off by one fix that's not actually off by one, it was a different bug :-)
authorChris Allegretta <chrisa@asty.org>
Wed, 24 Oct 2001 15:25:41 +0000 (15:25 +0000)
committerChris Allegretta <chrisa@asty.org>
Wed, 24 Oct 2001 15:25:41 +0000 (15:25 +0000)
git-svn-id: svn://svn.savannah.gnu.org/nano/branches/nano_1_0_branch/nano@877 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

ChangeLog
nano.c

index 7c46497c5a045f53e869f86d7e67bbfcbc6f2981..42a88e41ef1001ecdef167c5216a74223038a528 100644 (file)
--- 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 4212d0e43b250eae21d5d20160c83fe1fa766946..b7427ec8207ee394627cb73d7205aed8e62a1676 100644 (file)
--- 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)) {