mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-04-08 17:15:37 +02:00
Fix a syntax highlighting regression while switching among UDL files
Fix #16154
This commit is contained in:
parent
abbe60e74c
commit
53975028b7
@ -2336,7 +2336,9 @@ void ScintillaEditView::activateBuffer(BufferID buffer, bool force)
|
||||
_currentBufferID = buffer; //the magical switch happens here
|
||||
_currentBuffer = newBuf;
|
||||
|
||||
const bool isSameLangType = (_prevBuffer != nullptr) && (_prevBuffer->getLangType() == _currentBuffer->getLangType());
|
||||
const bool isSameLangType = (_prevBuffer != nullptr) && (_prevBuffer->getLangType() == _currentBuffer->getLangType()) &&
|
||||
(_currentBuffer->getLangType() != L_USER || wcscmp(_prevBuffer->getUserDefineLangName(), _currentBuffer->getUserDefineLangName()) == 0);
|
||||
|
||||
const int currentLangInt = static_cast<int>(_currentBuffer->getLangType());
|
||||
const bool isFirstActiveBuffer = (_currentBuffer->getLastLangType() != currentLangInt);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user