minor cosmetic fixes

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1733 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
master
David Lawrence Ramsey 2004-05-13 18:04:31 +00:00
parent 1122c85e34
commit 94e7094cee
1 changed files with 4 additions and 3 deletions

View File

@ -1896,7 +1896,8 @@ void edit_add(const filestruct *fileptr, const char *converted, int
if (paintlen == COLS) if (paintlen == COLS)
goto skip_step_two; goto skip_step_two;
step_two: /* Second step, we look for starts on this line. */ step_two:
/* Second step, we look for starts on this line. */
start_col = 0; start_col = 0;
while (start_col < endpos) { while (start_col < endpos) {
if (regexec(&tmpcolor->start, if (regexec(&tmpcolor->start,
@ -1923,8 +1924,8 @@ void edit_add(const filestruct *fileptr, const char *converted, int
endmatch.rm_so += startmatch.rm_eo; endmatch.rm_so += startmatch.rm_eo;
endmatch.rm_eo += startmatch.rm_eo; endmatch.rm_eo += startmatch.rm_eo;
/* There is an end on this line. But does it /* There is an end on this line. But does it
* appear on this page, and is the match more than * appear on this page, and is the match more
* zero characters long? */ * than zero characters long? */
if (endmatch.rm_eo > startpos && if (endmatch.rm_eo > startpos &&
endmatch.rm_eo > startmatch.rm_so) { endmatch.rm_eo > startmatch.rm_so) {
paintlen = strnlenpt(fileptr->data, paintlen = strnlenpt(fileptr->data,