aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Editor.cxx
diff options
context:
space:
mode:
authornyamatongwe <unknown>2004-05-27 11:50:56 +0000
committernyamatongwe <unknown>2004-05-27 11:50:56 +0000
commita869bce0b49a1592bd64350de34942dee26ce3e5 (patch)
treecac57a00b9c878780e7b053c6eecaaf6e66888dc /src/Editor.cxx
parenteb3433124297ef63d38aff5476200193ecdc1798 (diff)
downloadscintilla-mirror-a869bce0b49a1592bd64350de34942dee26ce3e5.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: