aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Editor.cxx
diff options
context:
space:
mode:
authornyamatongwe <unknown>2008-08-09 05:55:58 +0000
committernyamatongwe <unknown>2008-08-09 05:55:58 +0000
commit3be9c420feeffc6d580f50776c58d581fc7234e7 (patch)
treeb70706c397575dc2ccc4f45b2d8f6e125e8f0c5a /src/Editor.cxx
parent73bdcfd918ba0dfeef1a1416bd70387502b6ac37 (diff)
downloadscintilla-mirror-3be9c420feeffc6d580f50776c58d581fc7234e7.tar.gz
Clear document style now only clears the lexer indicators.
Diffstat (limited to 'src/Editor.cxx')
-rw-r--r--src/Editor.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index 372f03ea9..e28275917 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -3493,11 +3493,14 @@ void Editor::ClearAll() {
}
void Editor::ClearDocumentStyle() {
+ for (int i=0; i < INDIC_CONTAINER; i++) {
+ pdoc->decorations.SetCurrentIndicator(i);
+ pdoc->DecorationFillRange(0, 0, pdoc->Length());
+ }
pdoc->StartStyling(0, '\377');
pdoc->SetStyleFor(pdoc->Length(), 0);
cs.ShowAll();
pdoc->ClearLevels();
- pdoc->decorations.ClearAll();
}
void Editor::CopyAllowLine() {