aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Decoration.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/Decoration.cxx')
-rw-r--r--src/Decoration.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/Decoration.cxx b/src/Decoration.cxx
index e4ac0e07c..0e5b4a09a 100644
--- a/src/Decoration.cxx
+++ b/src/Decoration.cxx
@@ -101,6 +101,14 @@ void DecorationList::Delete(int indicator) {
}
}
+void DecorationList::ClearAll() {
+ for (Decoration *deco=root; deco; deco = deco->next) {
+ int position = 0;
+ int length = deco->rs.Length();
+ deco->rs.FillRange(position, 0, length);
+ }
+}
+
void DecorationList::SetCurrentIndicator(int indicator) {
currentIndicator = indicator;
current = DecorationFromIndicator(indicator);