Commit 22e5eff4 authored by David Lawrence Ramsey's avatar David Lawrence Ramsey
Browse files

cosmetic fixes

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2226 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
parent 4d709f35
Showing with 3 additions and 2 deletions
+3 -2
...@@ -3312,7 +3312,7 @@ void edit_add(const filestruct *fileptr, const char *converted, int ...@@ -3312,7 +3312,7 @@ void edit_add(const filestruct *fileptr, const char *converted, int
goto step_two; goto step_two;
/* Now paint the start of fileptr. */ /* Now paint the start of fileptr. */
paintlen = end_line != fileptr ? -1 : paintlen = (end_line != fileptr) ? -1 :
actual_x(converted, strnlenpt(fileptr->data, actual_x(converted, strnlenpt(fileptr->data,
endmatch.rm_eo) - start); endmatch.rm_eo) - start);
...@@ -3453,7 +3453,8 @@ void edit_add(const filestruct *fileptr, const char *converted, int ...@@ -3453,7 +3453,8 @@ void edit_add(const filestruct *fileptr, const char *converted, int
paintlen = actual_x(converted + index, paintlen); paintlen = actual_x(converted + index, paintlen);
wattron(edit, A_REVERSE); 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); wattroff(edit, A_REVERSE);
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment