From 53435b0efcfd8a17e1aa3378b702af66cf024445 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Tue, 10 Jun 2014 19:07:47 +0000 Subject: [PATCH] One more type fix and two tiny message tweaks. Patch by David Lawrence Ramsey. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4953 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- ChangeLog | 3 +++ src/winio.c | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 0d30a248..ab6b5212 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +2014-06-10 David Lawrence Ramsey + * src/winio.c: One more type fix and two tiny message tweaks. + 2014-06-09 David Lawrence Ramsey * src/*.c: Cosmetic tweaks of comments and whitespace. * src/help.c, src/rcfile.c, src/winio.c: Elide a function call by diff --git a/src/winio.c b/src/winio.c index 439d15de..d39b4b58 100644 --- a/src/winio.c +++ b/src/winio.c @@ -2915,11 +2915,11 @@ int update_line(filestruct *fileptr, size_t index) mvwaddch(edit, line, COLS - 1, '$'); #ifndef NANO_TINY } else { - int full_length = strlenpt(fileptr->data); + size_t full_length = strlenpt(fileptr->data); for (index += COLS; index <= full_length && line < editwinrows; index += COLS) { line++; #ifdef DEBUG - fprintf(stderr, "update_line(): Softwrap code, moving to %d index %lu\n", line, (unsigned long)index); + fprintf(stderr, "update_line(): softwrap code, moving to %d index %lu\n", line, (unsigned long)index); #endif blank_line(edit, line, 0, COLS); @@ -3286,7 +3286,7 @@ void edit_update(update_type location) } openfile->edittop = foo; #ifdef DEBUG - fprintf(stderr, "edit_update(), setting edittop to lineno %ld\n", (long)openfile->edittop->lineno); + fprintf(stderr, "edit_update(): setting edittop to lineno %ld\n", (long)openfile->edittop->lineno); #endif compute_maxrows(); edit_refresh_needed = TRUE; -- 2.39.5