diff options
author | nyamatongwe <unknown> | 2007-07-05 00:21:02 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2007-07-05 00:21:02 +0000 |
commit | 4be7bf3d97274061fb13625ce608e6920d9df82f (patch) | |
tree | 792606a63152df696ff4a3b85e3432e0723f3c4d /src/Document.cxx | |
parent | 32dd86e62f05f5b196e31f44ce3208f46e6f79bd (diff) | |
download | scintilla-mirror-4be7bf3d97274061fb13625ce608e6920d9df82f.tar.gz |
Moved expansion and contraction of decorators from Editor to Document
as its slightly better modularity.
Diffstat (limited to 'src/Document.cxx')
-rw-r--r-- | src/Document.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Document.cxx b/src/Document.cxx index 51800b905..4461e0e72 100644 --- a/src/Document.cxx +++ b/src/Document.cxx @@ -1407,6 +1407,11 @@ void Document::NotifySavePoint(bool atSavePoint) { } void Document::NotifyModified(DocModification mh) { + if (mh.modificationType & SC_MOD_INSERTTEXT) { + decorations.InsertSpace(mh.position, mh.length); + } else if (mh.modificationType & SC_MOD_DELETETEXT) { + decorations.DeleteRange(mh.position, mh.length); + } for (int i = 0; i < lenWatchers; i++) { watchers[i].watcher->NotifyModified(this, mh, watchers[i].userData); } |