aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Document.cxx
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2009-06-10 10:54:57 +0000
committernyamatongwe <devnull@localhost>2009-06-10 10:54:57 +0000
commit8b064ce4521a34da81beefe5c7b7743825a90b45 (patch)
tree36aad6126ec7825e48a4387c1dae29bbd53ec86c /src/Document.cxx
parent1dbec24d4f23053d0efa1c10ebb7fcafacea5ca4 (diff)
downloadscintilla-mirror-8b064ce4521a34da81beefe5c7b7743825a90b45.tar.gz
Clear out per-line data when all contents removed.
Diffstat (limited to 'src/Document.cxx')
-rw-r--r--src/Document.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Document.cxx b/src/Document.cxx
index ac37215b2..c71f840b6 100644
--- a/src/Document.cxx
+++ b/src/Document.cxx
@@ -100,6 +100,13 @@ Document::~Document() {
regex = 0;
}
+void Document::Init() {
+ for (int j=0; j<ldSize; j++) {
+ if (perLineData[j])
+ perLineData[j]->Init();
+ }
+}
+
void Document::InsertLine(int line) {
for (int j=0; j<ldSize; j++) {
if (perLineData[j])