From 76b544db63b139269f3e145344918f2f88d44d1f Mon Sep 17 00:00:00 2001 From: Don Ho Date: Wed, 23 Apr 2008 00:28:17 +0000 Subject: [PATCH] [TUNE] Tune isWordChar() function for smart highlighting feature. git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@179 f5eea248-9336-0410-98b8-ebc06183d4e3 --- PowerEditor/src/Notepad_plus.h | 8 ++++++-- PowerEditor/src/ScitillaComponent/FindReplaceDlg.cpp | 1 + 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/PowerEditor/src/Notepad_plus.h b/PowerEditor/src/Notepad_plus.h index a61930188..2b887ae39 100644 --- a/PowerEditor/src/Notepad_plus.h +++ b/PowerEditor/src/Notepad_plus.h @@ -706,6 +706,11 @@ private: case '\n': case '\r': case '.': + case ',': + case '?': + case ';': + case ':': + case '!': case '(': case ')': case '[': @@ -714,9 +719,8 @@ private: case '-': case '*': case '/': - case '!': case '#': - //case '@': + case '@': case '^': case '%': case '$': diff --git a/PowerEditor/src/ScitillaComponent/FindReplaceDlg.cpp b/PowerEditor/src/ScitillaComponent/FindReplaceDlg.cpp index 10666bd4f..c49e864b1 100644 --- a/PowerEditor/src/ScitillaComponent/FindReplaceDlg.cpp +++ b/PowerEditor/src/ScitillaComponent/FindReplaceDlg.cpp @@ -927,6 +927,7 @@ int FindReplaceDlg::processAll(ProcessOperation op, const char *txt2find, const if (!isCreated() && !txt2find) return nbReplaced; + if ((op == ProcessReplaceAll) && (*_ppEditView)->getCurrentBuffer().isReadOnly()) return nbReplaced;