diff --git a/PowerEditor/src/ScitillaComponent/ScintillaEditView.cpp b/PowerEditor/src/ScitillaComponent/ScintillaEditView.cpp index 67d91b791..d8a681500 100644 --- a/PowerEditor/src/ScitillaComponent/ScintillaEditView.cpp +++ b/PowerEditor/src/ScitillaComponent/ScintillaEditView.cpp @@ -1107,9 +1107,6 @@ void ScintillaEditView::bufferUpdated(Buffer * buffer, int mask) { if (buffer == _currentBuffer) { if (mask & BufferChangeLanguage) { defineDocType(buffer->getLangType()); - int end = execute(SCI_GETENDSTYLED); //style up to the last styled byte. - execute(SCI_CLEARDOCUMENTSTYLE); - execute(SCI_COLOURISE, 0, end); foldAll(fold_uncollapse); }