Commit d232fa2f authored by David Lawrence Ramsey's avatar David Lawrence Ramsey
Browse files

remove unnecessary screen update

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2634 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
No related merge requests found
Showing with 3 additions and 6 deletions
+3 -6
...@@ -1642,9 +1642,9 @@ void do_word_count(void) ...@@ -1642,9 +1642,9 @@ void do_word_count(void)
current_x = 0; current_x = 0;
placewewant = 0; placewewant = 0;
/* Keep moving to the next word until we reach the end of the file, /* Keep moving to the next word, without updating the screen, until
* incrementing the total word count whenever we're on a word just * we reach the end of the file, incrementing the total word count
* before moving. */ * whenever we're on a word just before moving. */
while (current != filebot || current_x != 0) { while (current != filebot || current_x != 0) {
if (do_next_word(FALSE)) if (do_next_word(FALSE))
words++; words++;
...@@ -1655,9 +1655,6 @@ void do_word_count(void) ...@@ -1655,9 +1655,6 @@ void do_word_count(void)
current_x = current_x_save; current_x = current_x_save;
placewewant = pww_save; placewewant = pww_save;
/* Update the screen. */
edit_refresh();
/* Display the total word count on the statusbar. */ /* Display the total word count on the statusbar. */
statusbar(_("Word count: %lu"), (unsigned long)words); statusbar(_("Word count: %lu"), (unsigned long)words);
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment