diff options
author | nyamatongwe <devnull@localhost> | 2007-07-26 07:28:36 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2007-07-26 07:28:36 +0000 |
commit | ca93cd78c042364a4ccef5b9a60702dc4082574d (patch) | |
tree | dab4414ba658b2148c4ebd76ffb52abaac4a0fd3 /src/Editor.cxx | |
parent | 6edcf7418b8777ff542502bde920dc7c80e12347 (diff) | |
download | scintilla-mirror-ca93cd78c042364a4ccef5b9a60702dc4082574d.tar.gz |
Added notification for changing line state and use it to redraw if a line
state change overruns the end of painting.
Diffstat (limited to 'src/Editor.cxx')
-rw-r--r-- | src/Editor.cxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx index 9d9b4b4f2..187503256 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -3731,6 +3731,15 @@ void Editor::NotifyModified(Document*, DocModification mh, void *) { if (paintState == painting) { CheckForChangeOutsidePaint(Range(mh.position, mh.position + mh.length)); } + if (mh.modificationType & SC_MOD_CHANGELINESTATE) { + if (paintState == painting) { + CheckForChangeOutsidePaint( + Range(pdoc->LineStart(mh.line), pdoc->LineStart(mh.line+1))); + } else { + // Could check that change is before last visible line. + Redraw(); + } + } if (mh.modificationType & (SC_MOD_CHANGESTYLE|SC_MOD_CHANGEINDICATOR)) { if (mh.modificationType & SC_MOD_CHANGESTYLE) { pdoc->IncrementStyleClock(); |