aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/CellBuffer.cxx
diff options
context:
space:
mode:
authornyamatongwe <unknown>2000-07-18 04:24:17 +0000
committernyamatongwe <unknown>2000-07-18 04:24:17 +0000
commitc8b861658ba73c63cc01f40bac303307d0080184 (patch)
treec9dd9ac27e358fb20930d015a573172171d9c6c7 /src/CellBuffer.cxx
parentfbc8d3a114b6fdf12dfe6f56e3893f935dcb74c3 (diff)
downloadscintilla-mirror-c8b861658ba73c63cc01f40bac303307d0080184.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();
+}