diff options
author | nyamatongwe <unknown> | 2003-11-01 11:40:37 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2003-11-01 11:40:37 +0000 |
commit | 1cb0c37b721cfa4909a260a48aa82999f61cacc0 (patch) | |
tree | d176377cdf80118ee4a7fc9363f14492317c5fb3 /src/Editor.cxx | |
parent | 40780f412ede5e9a0aee4378d22909172ad3ace3 (diff) | |
download | scintilla-mirror-1cb0c37b721cfa4909a260a48aa82999f61cacc0.tar.gz |
Patch from Roy Wood to allow changing the characters that are in the
whitespace class.
Diffstat (limited to 'src/Editor.cxx')
-rw-r--r-- | src/Editor.cxx | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx index b1811e075..c4e6860e9 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -1122,7 +1122,7 @@ This way, we favour the displaying of useful information: the begining of lines, where most code reside, and the lines after the caret, eg. the body of a function. | | | | | -slop | strict | jumps | even | Caret can go to the margin | When reaching limit (caret going out of +slop | strict | jumps | even | Caret can go to the margin | When reaching limitƯ(caret going out of | | | | | visibility or going into the UZ) display is... -----+--------+-------+------+--------------------------------------------+-------------------------------------------------------------- 0 | 0 | 0 | 0 | Yes | moved to put caret on top/on right @@ -5733,7 +5733,14 @@ sptr_t Editor::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam) { case SCI_SETWORDCHARS: { if (lParam == 0) return 0; - pdoc->SetWordChars(reinterpret_cast<unsigned char *>(lParam)); + pdoc->SetCharClasses(reinterpret_cast<unsigned char *>(lParam), Document::ccWord); + } + break; + + case SCI_SETWHITESPACECHARS: { + if (lParam == 0) + return 0; + pdoc->SetCharClasses(reinterpret_cast<unsigned char *>(lParam), Document::ccSpace); } break; |