aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Editor.cxx
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2004-01-13 20:25:47 +0000
committernyamatongwe <devnull@localhost>2004-01-13 20:25:47 +0000
commit2d498f5ff3b8d6a527d3ca8b3c23e4171af56a8f (patch)
tree4c520b693eedc7e27567552fecbd72bcc022a062 /src/Editor.cxx
parent771b0eafa4d34eece2c5f19e7c4bbff6a289175f (diff)
downloadscintilla-mirror-2d498f5ff3b8d6a527d3ca8b3c23e4171af56a8f.tar.gz
When styling is performed outside a styleneeded event,
increment the style clock so the layout cache is invalidated and so the styling is displayed.
Diffstat (limited to 'src/Editor.cxx')
-rw-r--r--src/Editor.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index c13398b31..f02ce2b6a 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -3452,6 +3452,7 @@ void Editor::NotifyModified(Document*, DocModification mh, void *) {
CheckForChangeOutsidePaint(Range(mh.position, mh.position + mh.length));
}
if (mh.modificationType & SC_MOD_CHANGESTYLE) {
+ pdoc->IncrementStyleClock();
if (paintState == notPainting) {
if (mh.position < pdoc->LineStart(topLine)) {
// Styling performed before this view