From 17d2d5c793eaa95b170684213b18ff2e3f5ce291 Mon Sep 17 00:00:00 2001 From: Neil Date: Fri, 14 May 2021 13:54:44 +1000 Subject: Add SC_ELEMENT_WHITE_SPACE_BACK to set the background colour of visible whitespace. --- src/Editor.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/Editor.cxx') 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: -- cgit v1.2.3