aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Editor.cxx
diff options
context:
space:
mode:
authornyamatongwe <unknown>2007-07-26 07:28:36 +0000
committernyamatongwe <unknown>2007-07-26 07:28:36 +0000
commit5068b02e1f2ef2c0e05063498b01fb36d4f4a57c (patch)
treedab4414ba658b2148c4ebd76ffb52abaac4a0fd3 /src/Editor.cxx
parent65c9e422b94e33cfb5bd18b81879c1d9bdcd30e4 (diff)
downloadscintilla-mirror-5068b02e1f2ef2c0e05063498b01fb36d4f4a57c.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.cxx9
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();