From 1cb0c37b721cfa4909a260a48aa82999f61cacc0 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sat, 1 Nov 2003 11:40:37 +0000 Subject: Patch from Roy Wood to allow changing the characters that are in the whitespace class. --- src/Editor.cxx | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'src/Editor.cxx') 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(lParam)); + pdoc->SetCharClasses(reinterpret_cast(lParam), Document::ccWord); + } + break; + + case SCI_SETWHITESPACECHARS: { + if (lParam == 0) + return 0; + pdoc->SetCharClasses(reinterpret_cast(lParam), Document::ccSpace); } break; -- cgit v1.2.3