Description of the Issue
When selected foreground coloring is enabled by creating the enableSelectFgColor.xml file in the same folder as config.xml lives, selected foreground coloring works when text is selected, but doesn't display correctly when editor window loses input focus.
Steps to Reproduce the Issue
- Create a zero-length file named enableSelectFgColor.xml file in the same folder as config.xml lives
- Run Notepad++
- Load an .xml file, e.g. langs.xml
- Select some text; observe the coloring of the selected text:

- Invoke Find window via Ctrl+f.
- Observe the same selected text as before in the editor window now appears styled/colored/lexed like this:

Expected Behavior
Coloring of selected text remains as shown in step 4.
Actual Behavior
Coloring of selected text changes to that shown in step 6.
Debug Information
Notepad++ v8.4.1 (64-bit)
Build time : May 8 2022 - 19:51:18
Path : C:...\npp.8.4.1.portable.x64\notepad++.exe
Command Line : -titleAdd="8.4.1 64-bit" -multiInst "C:...\1\npp.8.4.1.portable.x64\license.txt"
Admin mode : OFF
Local Conf mode : ON
Cloud Config : OFF
OS Name : Windows 10 Enterprise (64-bit)
OS Version : 2009
OS Build : 19042.1645
Current ANSI codepage : 1252
Plugins : mimeTools.dll NppConverter.dll NppExport.dll PythonScript.dll
Misc
See:
Description of the Issue
When selected foreground coloring is enabled by creating the enableSelectFgColor.xml file in the same folder as config.xml lives, selected foreground coloring works when text is selected, but doesn't display correctly when editor window loses input focus.
Steps to Reproduce the Issue
Expected Behavior
Coloring of selected text remains as shown in step 4.
Actual Behavior
Coloring of selected text changes to that shown in step 6.
Debug Information
Notepad++ v8.4.1 (64-bit)
Build time : May 8 2022 - 19:51:18
Path : C:...\npp.8.4.1.portable.x64\notepad++.exe
Command Line : -titleAdd="8.4.1 64-bit" -multiInst "C:...\1\npp.8.4.1.portable.x64\license.txt"
Admin mode : OFF
Local Conf mode : ON
Cloud Config : OFF
OS Name : Windows 10 Enterprise (64-bit)
OS Version : 2009
OS Build : 19042.1645
Current ANSI codepage : 1252
Plugins : mimeTools.dll NppConverter.dll NppExport.dll PythonScript.dll
Misc
See: