aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Decoration.cxx
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2008-08-03 11:18:52 +0000
committernyamatongwe <devnull@localhost>2008-08-03 11:18:52 +0000
commit75bd235fda3664fe9fbc09bb1d0e0d7f8e634f78 (patch)
tree8f37c3f8048c3c534eec7a852e8788a04b9a83ea /src/Decoration.cxx
parent24dd8727e80b11543cbc5898e21d283228d81f83 (diff)
downloadscintilla-mirror-75bd235fda3664fe9fbc09bb1d0e0d7f8e634f78.tar.gz
ClearDocumentStyle clears all indicators in case the lexer has used an
indicator.
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);