Fix word count regex to include words separated by newline (fixes #640, closes #653)

This commit is contained in:
Adrian Avramescu 2015-08-05 16:30:32 -07:00 committed by Damien GERARD
parent ec66bc059a
commit 3319612a26

View File

@ -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);
}