]> git.lyx.org Git - lyx.git/blobdiff - src/Buffer.cpp
drop unintented static declaration from local temporary variable (formerly a global...
[lyx.git] / src / Buffer.cpp
index 445503993eae7ad536bd105b1649645d89c93ed8..40c91b8ce9b75c4addbe0f29c23f5d515d6c5eba 100644 (file)
@@ -5365,6 +5365,12 @@ void Buffer::Impl::updateStatistics(DocIterator & from, DocIterator & to, bool s
                                }
                                else if (ins && ins->isSpace())
                                        ++blank_count_;
+                               else if (ins) {
+                                       pair<int, int> words = ins->isWords();
+                                       char_count_ += words.first;
+                                       word_count_ += words.second;
+                                       inword = false;
+                               }
                                else {
                                        char_type const c = par.getChar(pos);
                                        if (isPrintableNonspace(c))