From 22e5eff432694e0be2829248c9d7fd09b97a9503 Mon Sep 17 00:00:00 2001 From: David Lawrence Ramsey Date: Mon, 3 Jan 2005 22:56:38 +0000 Subject: [PATCH] cosmetic fixes git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2226 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- src/winio.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/winio.c b/src/winio.c index babc85d6..26a13d49 100644 --- a/src/winio.c +++ b/src/winio.c @@ -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); } } -- 2.39.5