commit d232fa2fc388868dbf03bad639c745cddeec906e
parent e010edd1f86a23646bc86e7ecfec8eb551ddb65b
Author: David Lawrence Ramsey <pooka109@gmail.com>
Date: Sun, 12 Jun 2005 22:40:09 +0000
remove unnecessary screen update
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2634 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
Diffstat:
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git 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);
}