diff --git a/PowerEditor/src/ScintillaComponent/ScintillaEditView.cpp b/PowerEditor/src/ScintillaComponent/ScintillaEditView.cpp index 152fe07e2..6b737ae55 100644 --- a/PowerEditor/src/ScintillaComponent/ScintillaEditView.cpp +++ b/PowerEditor/src/ScintillaComponent/ScintillaEditView.cpp @@ -2385,12 +2385,6 @@ void ScintillaEditView::activateBuffer(BufferID buffer, bool force) _currentBuffer->setLastLangType(currentLangInt); setWordChars(); - - if (_currentBuffer->getNeedsLexing()) - { - restyleBuffer(); - } - maintainStateForNpc(); // Everything should be updated, but the language