From e7e0244ee5f2dc3cee896ef695efbaf9a47ac519 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sun, 23 Apr 2000 23:02:52 +0000 Subject: Fixing problems with fold information degrading when lines inserted and removed. New notifications before inserting and deleting text. --- src/Document.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/Document.h') 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 -- cgit v1.2.3