Skip to content

Selected text changes color/styling/lexing when editor window loses focus #11743

@alankilborn

Description

@alankilborn

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

  1. Create a zero-length file named enableSelectFgColor.xml file in the same folder as config.xml lives
  2. Run Notepad++
  3. Load an .xml file, e.g. langs.xml
  4. Select some text; observe the coloring of the selected text:
    image
  5. Invoke Find window via Ctrl+f.
  6. Observe the same selected text as before in the editor window now appears styled/colored/lexed like this:
    image

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:

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions