StyledEdit: fixed statistics words count.

* Bug #9822 and actual fix suggested by DanielW.
This commit is contained in:
Jerome Duval 2013-06-14 20:42:11 +02:00
parent 92bb2fb33e
commit b97ad33697

View File

@ -1825,7 +1825,7 @@ StyledEditWindow::_ShowStatistics()
size_t length = fTextView->TextLength();
for (size_t i = 0; i < length; i++) {
if (BUnicodeChar::IsSpace(fTextView->Text()[i])) {
if (BUnicodeChar::IsWhitespace(fTextView->Text()[i])) {
inWord = false;
} else if (!inWord) {
words++;