aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Editor.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/Editor.cxx')
-rw-r--r--src/Editor.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index 5a200e952..bf81bb8ea 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -2105,7 +2105,7 @@ void Editor::ClearAll() {
void Editor::ClearDocumentStyle() {
pdoc->decorations.DeleteLexerDecorations();
- pdoc->StartStyling(0, '\377');
+ pdoc->StartStyling(0);
pdoc->SetStyleFor(pdoc->Length(), 0);
cs.ShowAll();
SetAnnotationHeights(0, pdoc->LinesTotal());
@@ -5549,7 +5549,7 @@ void Editor::AddStyledText(char *buffer, Sci::Position appendLength) {
for (i = 0; i < textLength; i++) {
text[i] = buffer[i*2+1];
}
- pdoc->StartStyling(CurrentPosition(), static_cast<unsigned char>(0xff));
+ pdoc->StartStyling(CurrentPosition());
pdoc->SetStyles(textLength, text.c_str());
SetEmptySelection(sel.MainCaret() + lengthInserted);
}
@@ -6390,7 +6390,7 @@ sptr_t Editor::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam) {
return pdoc->GetLineEndTypesActive();
case SCI_STARTSTYLING:
- pdoc->StartStyling(static_cast<int>(wParam), static_cast<char>(lParam));
+ pdoc->StartStyling(static_cast<int>(wParam));
break;
case SCI_SETSTYLING: