aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/CellBuffer.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/CellBuffer.cxx
parent1dbec24d4f23053d0efa1c10ebb7fcafacea5ca4 (diff)
downloadscintilla-mirror-8b064ce4521a34da81beefe5c7b7743825a90b45.tar.gz
Clear out per-line data when all contents removed.
Diffstat (limited to 'src/CellBuffer.cxx')
-rw-r--r--src/CellBuffer.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/CellBuffer.cxx b/src/CellBuffer.cxx
index 1db0d7d0a..7134d3188 100644
--- a/src/CellBuffer.cxx
+++ b/src/CellBuffer.cxx
@@ -21,7 +21,7 @@
using namespace Scintilla;
#endif
-LineVector::LineVector() : starts(256) {
+LineVector::LineVector() : starts(256), perLine(0) {
Init();
}
@@ -31,6 +31,9 @@ LineVector::~LineVector() {
void LineVector::Init() {
starts.DeleteAll();
+ if (perLine) {
+ perLine->Init();
+ }
}
void LineVector::SetPerLine(PerLine *pl) {