diff options
author | nyamatongwe <devnull@localhost> | 2000-07-18 04:24:17 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2000-07-18 04:24:17 +0000 |
commit | dee236ce71b0ce4795a6d2773f47b4075c283d8c (patch) | |
tree | c9dd9ac27e358fb20930d015a573172171d9c6c7 /src/CellBuffer.cxx | |
parent | 0fcb749581b4806a6dba56eb7edb6ceb961ab08e (diff) | |
download | scintilla-mirror-dee236ce71b0ce4795a6d2773f47b4075c283d8c.tar.gz |
Added functions to clear all styling and contraction.
Diffstat (limited to 'src/CellBuffer.cxx')
-rw-r--r-- | src/CellBuffer.cxx | 9 |
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(); +} |