diff --git a/src/text.c b/src/text.c index 1781dfb2..f5f128f9 100644 --- a/src/text.c +++ b/src/text.c @@ -2095,8 +2095,8 @@ void do_wordlinechar_count(void) if (added_magicline) remove_magicline(); - lines = openfile->filebot->lineno - openfile->fileage->lineno + - 1; + lines = openfile->filebot->lineno - + openfile->fileage->lineno + 1; chars = get_totsize(openfile->fileage, openfile->filebot); /* Unpartition the filestruct so that it contains all the text diff --git a/src/winio.c b/src/winio.c index 6e93749c..7f2ef51c 100644 --- a/src/winio.c +++ b/src/winio.c @@ -3053,7 +3053,6 @@ size_t get_page_start(size_t column) return column - (COLS - 2); else return column - (COLS - 1); - /* The parentheses are necessary to avoid overflow. */ } /* Resets current_y, based on the position of current, and puts the