aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Editor.cxx
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2004-05-27 11:50:56 +0000
committernyamatongwe <devnull@localhost>2004-05-27 11:50:56 +0000
commitd195250d0363b59e6e9aa7ec15cd76ecaa704306 (patch)
treecac57a00b9c878780e7b053c6eecaaf6e66888dc /src/Editor.cxx
parent8e7b36a79930c6665cbbb9fd8f62753b25bf1546 (diff)
downloadscintilla-mirror-d195250d0363b59e6e9aa7ec15cd76ecaa704306.tar.gz
Fixed behaviour of SetWordChars so characters can be removed
from set of word characters. Implemented by setting any (alphanumeric or '_') characters not in argument to be punctuation.
Diffstat (limited to 'src/Editor.cxx')
-rw-r--r--src/Editor.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index cadc6b800..1ab36610b 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -5942,7 +5942,7 @@ sptr_t Editor::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam) {
break;
case SCI_SETWORDCHARS: {
- pdoc->SetDefaultCharClasses();
+ pdoc->SetDefaultCharClasses(false);
if (lParam == 0)
return 0;
pdoc->SetCharClasses(reinterpret_cast<unsigned char *>(lParam), Document::ccWord);
@@ -5957,7 +5957,7 @@ sptr_t Editor::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam) {
break;
case SCI_SETCHARSDEFAULT:
- pdoc->SetDefaultCharClasses();
+ pdoc->SetDefaultCharClasses(true);
break;
case SCI_GETLENGTH: