- winio.c:edit_add() - Little fixes to let color highlights not bleed onto the next line

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@974 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
master
Chris Allegretta 2002-01-05 03:30:10 +00:00
parent 66577acae1
commit 1bf8f5e9d2
2 changed files with 4 additions and 4 deletions

View File

@ -41,6 +41,8 @@ CVS code -
- gettextized a pair of strings. - gettextized a pair of strings.
bottombars() bottombars()
- Get rid of that annoying reversed line when color is on! :) - Get rid of that annoying reversed line when color is on! :)
edit_add()
- Little fixes to let color highlights not bleed onto the next line.
- m4/gettext.m4: - m4/gettext.m4:
- Back down to 1.1.3 version. - Back down to 1.1.3 version.
- faq.html: - faq.html:

View File

@ -804,12 +804,10 @@ void edit_add(filestruct * fileptr, int yval, int start, int virt_cur_x,
wattron(edit, A_BOLD); wattron(edit, A_BOLD);
wattron(edit, COLOR_PAIR(tmpcolor->pairnum)); wattron(edit, COLOR_PAIR(tmpcolor->pairnum));
if (regmatches[0].rm_eo - regmatches[0].rm_so if (regmatches[0].rm_eo + k <= COLS)
+ k <= COLS)
paintlen = regmatches[0].rm_eo - regmatches[0].rm_so; paintlen = regmatches[0].rm_eo - regmatches[0].rm_so;
else else
paintlen = COLS - (regmatches[0].rm_eo paintlen = COLS - k - regmatches[0].rm_so - 1;
- regmatches[0].rm_so);
mvwaddnstr(edit, yval, regmatches[0].rm_so + k, mvwaddnstr(edit, yval, regmatches[0].rm_so + k,
&fileptr->data[k + regmatches[0].rm_so], &fileptr->data[k + regmatches[0].rm_so],