aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Document.h
diff options
context:
space:
mode:
authornyamatongwe <unknown>2000-04-23 23:02:52 +0000
committernyamatongwe <unknown>2000-04-23 23:02:52 +0000
commit74cf93aa3185db02bccecacaec088c2404a47692 (patch)
tree1333ea2f269ba51377731942af211d3c2211dd9e /src/Document.h
parent1a0760897c81afebc3e9d2ead502d09eff9479ee (diff)
downloadscintilla-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.h10
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