diff options
author | nyamatongwe <unknown> | 2000-04-23 23:02:52 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2000-04-23 23:02:52 +0000 |
commit | 74cf93aa3185db02bccecacaec088c2404a47692 (patch) | |
tree | 1333ea2f269ba51377731942af211d3c2211dd9e /src/Document.h | |
parent | 1a0760897c81afebc3e9d2ead502d09eff9479ee (diff) | |
download | scintilla-mirror-74cf93aa3185db02bccecacaec088c2404a47692.tar.gz |
Fixing problems with fold information degrading when lines inserted and
removed.
New notifications before inserting and deleting text.
Diffstat (limited to 'src/Document.h')
-rw-r--r-- | src/Document.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/Document.h b/src/Document.h index 15f8f1121..92e4ff14f 100644 --- a/src/Document.h +++ b/src/Document.h @@ -220,6 +220,16 @@ public: line(0), foldLevelNow(0), foldLevelPrev(0) {} + + DocModification(int modificationType_, const Action &act, int linesAdded_=0) : + modificationType(modificationType_), + position(act.position / 2), + length(act.lenData), + linesAdded(linesAdded_), + text(act.data), + line(0), + foldLevelNow(0), + foldLevelPrev(0) {} }; // A class that wants to receive notifications from a Document must be derived from DocWatcher |