Rocco's edit_add off by one fix
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@380 35c25a1d-7b9e-4130-9fde-d3aeb78583b8master
parent
20c131cf67
commit
908805a2e8
|
@ -4,6 +4,9 @@ CVS code -
|
||||||
- Added O_EXCL to open call if tmp is set, more security which hopefully
|
- Added O_EXCL to open call if tmp is set, more security which hopefully
|
||||||
fixes any remaining security issues.
|
fixes any remaining security issues.
|
||||||
- Added tmp check to TMP_OPT section (how apropriate).
|
- Added tmp check to TMP_OPT section (how apropriate).
|
||||||
|
- winio.c:
|
||||||
|
edit_add()
|
||||||
|
- Off by one display error (fix by Rocco Corsi).
|
||||||
|
|
||||||
nano 0.9.22 - 12/02/2000
|
nano 0.9.22 - 12/02/2000
|
||||||
- General
|
- General
|
||||||
|
|
2
winio.c
2
winio.c
|
@ -761,7 +761,7 @@ void edit_add(filestruct * fileptr, int yval, int start, int virt_cur_x,
|
||||||
#endif
|
#endif
|
||||||
/* Just paint the string (no mark on this line) */
|
/* Just paint the string (no mark on this line) */
|
||||||
mvwaddnstr(edit, yval, 0, &fileptr->data[start],
|
mvwaddnstr(edit, yval, 0, &fileptr->data[start],
|
||||||
get_page_end_virtual(this_page) - start);
|
get_page_end_virtual(this_page) - start + 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in New Issue