mirror of
git://git.sv.gnu.org/nano.git
synced 2024-11-22 12:51:23 +03:00
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/trunk/nano@878 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
This commit is contained in:
parent
3a24f3f780
commit
2cd72b6aa2
@ -18,8 +18,6 @@ CVS code -
|
||||
replaces cuttingpartialline).
|
||||
do_uncut_text()
|
||||
- Similar display fixes (David Lawrence Ramsey).
|
||||
cut_marked_segment()
|
||||
- Fix off-by one in mem allocation.
|
||||
- faq.html
|
||||
- Removed nano-editor.org FTP site address [deprecated] and added
|
||||
the GNU one.
|
||||
@ -39,7 +37,6 @@ CVS code -
|
||||
beginning of first line, prog should simply abort. Added
|
||||
the #ifdefs around the code in main().
|
||||
main()
|
||||
- Fixed off by one when checking for MAIN_LIST_LEN. Ugh.
|
||||
- Moved #ifndef NANO_SMALL down past the case 0: line so
|
||||
control-space doesn't insert a \0 (ack!)
|
||||
- rcfile.c:
|
||||
|
2
nano.c
2
nano.c
@ -3115,7 +3115,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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user