mirror of
git://git.sv.gnu.org/nano.git
synced 2024-12-05 10:52:10 +03:00
cosmetic fixes
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2226 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
This commit is contained in:
parent
4d709f351c
commit
22e5eff432
@ -3312,7 +3312,7 @@ void edit_add(const filestruct *fileptr, const char *converted, int
|
||||
goto step_two;
|
||||
|
||||
/* Now paint the start of fileptr. */
|
||||
paintlen = end_line != fileptr ? -1 :
|
||||
paintlen = (end_line != fileptr) ? -1 :
|
||||
actual_x(converted, strnlenpt(fileptr->data,
|
||||
endmatch.rm_eo) - start);
|
||||
|
||||
@ -3453,7 +3453,8 @@ void edit_add(const filestruct *fileptr, const char *converted, int
|
||||
paintlen = actual_x(converted + index, paintlen);
|
||||
|
||||
wattron(edit, A_REVERSE);
|
||||
mvwaddnstr(edit, yval, x_start, converted + x_start, paintlen);
|
||||
mvwaddnstr(edit, yval, x_start, converted + x_start,
|
||||
paintlen);
|
||||
wattroff(edit, A_REVERSE);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user