aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/CellBuffer.cxx
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2000-07-18 04:24:17 +0000
committernyamatongwe <devnull@localhost>2000-07-18 04:24:17 +0000
commitdee236ce71b0ce4795a6d2773f47b4075c283d8c (patch)
treec9dd9ac27e358fb20930d015a573172171d9c6c7 /src/CellBuffer.cxx
parent0fcb749581b4806a6dba56eb7edb6ceb961ab08e (diff)
downloadscintilla-mirror-dee236ce71b0ce4795a6d2773f47b4075c283d8c.tar.gz
Added functions to clear all styling and contraction.
Diffstat (limited to 'src/CellBuffer.cxx')
-rw-r--r--src/CellBuffer.cxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/CellBuffer.cxx b/src/CellBuffer.cxx
index 130b289e6..68bcde2ed 100644
--- a/src/CellBuffer.cxx
+++ b/src/CellBuffer.cxx
@@ -186,6 +186,12 @@ void LineVector::ExpandLevels(int sizeNew) {
}
}
+void LineVector::ClearLevels() {
+ delete []levels;
+ levels = 0;
+ sizeLevels = 0;
+}
+
void LineVector::InsertValue(int pos, int value) {
//Platform::DebugPrintf("InsertValue[%d] = %d\n", pos, value);
if ((lines + 2) >= size) {
@@ -1070,3 +1076,6 @@ int CellBuffer::GetLevel(int line) {
}
}
+void CellBuffer::ClearLevels() {
+ lv.ClearLevels();
+}