diff --git a/src/text.c b/src/text.c index 1781dfb208de67e2a41dd712438760787879980d..f5f128f94349895fa8b6c6e3ccd1bc761d03f29a 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 6e93749cd4ff74f1cc17d0144de0e3bf12975204..7f2ef51ced5b2e2316197aeb1fecfdbf23a06410 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