From d81d1ab0ff6f822a839166558713f4b3f91a4879 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sat, 9 Aug 2008 05:55:58 +0000 Subject: Clear document style now only clears the lexer indicators. --- src/Editor.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/Editor.cxx') 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() { -- cgit v1.2.3