Fix unfocused selected text background color changed problem

Ref: https://github.com/notepad-plus-plus/notepad-plus-plus/pull/11419#issuecomment-1094362796

Fix #11595, close #11601
This commit is contained in:
Don Ho 2022-04-28 02:22:07 +02:00
parent c94d50842e
commit 3b0d5242ac
1 changed files with 1 additions and 0 deletions

View File

@ -2593,6 +2593,7 @@ void ScintillaEditView::performGlobalStyles()
selectColorFore = pStyle->_fgColor; selectColorFore = pStyle->_fgColor;
} }
execute(SCI_SETSELBACK, 1, selectColorBack); execute(SCI_SETSELBACK, 1, selectColorBack);
execute(SCI_SETELEMENTCOLOUR, SC_ELEMENT_SELECTION_INACTIVE_BACK, selectColorBack);
if (nppParams.isSelectFgColorEnabled()) if (nppParams.isSelectFgColorEnabled())
execute(SCI_SETSELFORE, 1, selectColorFore); execute(SCI_SETSELFORE, 1, selectColorFore);