diff --git a/PowerEditor/src/Notepad_plus.cpp b/PowerEditor/src/Notepad_plus.cpp index c554cf775..b8d1ea549 100644 --- a/PowerEditor/src/Notepad_plus.cpp +++ b/PowerEditor/src/Notepad_plus.cpp @@ -2906,7 +2906,7 @@ size_t Notepad_plus::getSelectedBytes() int Notepad_plus::wordCount() { FindOption env; - env._str2Search = TEXT("[^ \\\\.,;:!?()+\\-\\*/=\\]\\[{}&~\"'`|@$%<>\\^]+"); + env._str2Search = TEXT("[^ \\\\.,;:!?()+\\r\\n\\-\\*/=\\]\\[{}&~\"'`|@$%<>\\^]+"); env._searchType = FindRegex; return _findReplaceDlg.processAll(ProcessCountAll, &env, true); }