diff options
author | Neil <nyamatongwe@gmail.com> | 2021-05-14 13:54:44 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2021-05-14 13:54:44 +1000 |
commit | 17d2d5c793eaa95b170684213b18ff2e3f5ce291 (patch) | |
tree | 35f64342cf85c11800ae711c0def0a1be435d20b /src/Editor.cxx | |
parent | c173fc47fda7bb86399bd777540bb17f8e05172d (diff) | |
download | scintilla-mirror-17d2d5c793eaa95b170684213b18ff2e3f5ce291.tar.gz |
Add SC_ELEMENT_WHITE_SPACE_BACK to set the background colour of visible
whitespace.
Diffstat (limited to 'src/Editor.cxx')
-rw-r--r-- | src/Editor.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx index 62cb170d3..9b5bfd6ee 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -7518,8 +7518,9 @@ sptr_t Editor::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam) { break; case SCI_SETWHITESPACEBACK: - vs.whitespaceBack = OptionalColour(wParam, lParam); - InvalidateStyleRedraw(); + if (vs.SetElementColourOptional(SC_ELEMENT_WHITE_SPACE_BACK, wParam, lParam)) { + InvalidateStyleRedraw(); + } break; case SCI_SETSELECTIONLAYER: |