diff options
Diffstat (limited to 'src/Editor.cxx')
| -rw-r--r-- | src/Editor.cxx | 8 | 
1 files changed, 6 insertions, 2 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx index 458d34ccf..35ca7bb77 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -7196,14 +7196,18 @@ sptr_t Editor::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam) {  		break;  	case SCI_SETELEMENTCOLOUR: -		vs.elementColours[static_cast<int>(wParam)] = ColourAlpha(static_cast<int>(lParam)); +		if (vs.SetElementColour(static_cast<int>(wParam), ColourAlpha(static_cast<int>(lParam)))) { +			InvalidateStyleRedraw(); +		}  		break;  	case SCI_GETELEMENTCOLOUR:  		return vs.ElementColour(static_cast<int>(wParam)).value_or(ColourAlpha()).AsInteger();  	case SCI_RESETELEMENTCOLOUR: -		vs.ResetElement(static_cast<int>(wParam)); +		if (vs.ResetElement(static_cast<int>(wParam))) { +			InvalidateStyleRedraw(); +		}  		break;  	case SCI_GETELEMENTISSET:  | 
