StyledEdit: fixed statistics words count.
* Bug #9822 and actual fix suggested by DanielW.
This commit is contained in:
parent
92bb2fb33e
commit
b97ad33697
@ -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++;
|
||||
|
Loading…
Reference in New Issue
Block a user