From 75bd235fda3664fe9fbc09bb1d0e0d7f8e634f78 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sun, 3 Aug 2008 11:18:52 +0000 Subject: ClearDocumentStyle clears all indicators in case the lexer has used an indicator. --- src/Decoration.cxx | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/Decoration.cxx') 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); -- cgit v1.2.3