diff --git a/src/nano.c b/src/nano.c index 535a2c15de4ac09bf01bf4b9af309b403c70ccac..1aa6d398e2260abc981a9b15263b32ca9ddb1483 100644 --- a/src/nano.c +++ b/src/nano.c @@ -1642,9 +1642,9 @@ void do_word_count(void) current_x = 0; placewewant = 0; - /* Keep moving to the next word until we reach the end of the file, - * incrementing the total word count whenever we're on a word just - * before moving. */ + /* Keep moving to the next word, without updating the screen, until + * we reach the end of the file, incrementing the total word count + * whenever we're on a word just before moving. */ while (current != filebot || current_x != 0) { if (do_next_word(FALSE)) words++; @@ -1655,9 +1655,6 @@ void do_word_count(void) current_x = current_x_save; placewewant = pww_save; - /* Update the screen. */ - edit_refresh(); - /* Display the total word count on the statusbar. */ statusbar(_("Word count: %lu"), (unsigned long)words); }