From 7ac7f9a0e67a338d8c333a76f5b75715639358fa Mon Sep 17 00:00:00 2001 From: Don Ho Date: Fri, 14 Feb 2025 18:05:41 +0100 Subject: [PATCH] Remove unecessary lines for accelerating switching into large files ref: #16064 --- PowerEditor/src/ScintillaComponent/ScintillaEditView.cpp | 6 ------ 1 file changed, 6 deletions(-) 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