From 3319612a267220b4fed1522211fb004b1f189ea4 Mon Sep 17 00:00:00 2001 From: Adrian Avramescu Date: Wed, 5 Aug 2015 16:30:32 -0700 Subject: [PATCH] Fix word count regex to include words separated by newline (fixes #640, closes #653) --- PowerEditor/src/Notepad_plus.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }