Description of the Issue
As first reported in #11585, reloading a buffer in Notepad++ 8.4 makes the syntax highlighting become erratic or disappear completely. If the style is provided by UDL, as with Markdown, highlighting is more likely to completely disappear. Builtin lexers are more likely to apply the wrong styles and fail to detect fold levels.
In all cases, the problem is corrected by switching focus to another buffer, then switching back.
This affects all build types of release version 8.4 (32- and 64-bit).
Steps to Reproduce the Issue
- Open any file in a supported language. Do not edit anything.
- Select File > Reload from Disk, or press Ctrl+R
- See examples below of what to expect
- Open a second buffer and switch focus to it
- Switch back to the first buffer
- The first buffer is now properly lexed
Examples
Markdown

JSON

C / C++ / C# / JavaScript / Objective-C

Expected Behavior
Reloaded buffers should be lexed immediately with correct styles and fold levels.
Actual Behavior
Syntax highlight is temporarily missing or incorrect after the buffer is reloaded from disk.
Debug Information
Notepad++ v8.4 (64-bit)
Build time : Apr 20 2022 - 03:31:06
Path : C:bin\npp_8.4.0\notepad++.exe
Command Line :
Admin mode : OFF
Local Conf mode : ON
Cloud Config : OFF
OS Name : Windows 11 (64-bit)
OS Version : 2009
OS Build : 22000.651
Current ANSI codepage : 1252
Plugins : mimeTools.dll NppConverter.dll NppExport.dll
Description of the Issue
As first reported in #11585, reloading a buffer in Notepad++ 8.4 makes the syntax highlighting become erratic or disappear completely. If the style is provided by UDL, as with Markdown, highlighting is more likely to completely disappear. Builtin lexers are more likely to apply the wrong styles and fail to detect fold levels.
In all cases, the problem is corrected by switching focus to another buffer, then switching back.
This affects all build types of release version 8.4 (32- and 64-bit).
Steps to Reproduce the Issue
Examples
Markdown
JSON
C / C++ / C# / JavaScript / Objective-C
Expected Behavior
Reloaded buffers should be lexed immediately with correct styles and fold levels.
Actual Behavior
Syntax highlight is temporarily missing or incorrect after the buffer is reloaded from disk.
Debug Information
Notepad++ v8.4 (64-bit)
Build time : Apr 20 2022 - 03:31:06
Path : C:bin\npp_8.4.0\notepad++.exe
Command Line :
Admin mode : OFF
Local Conf mode : ON
Cloud Config : OFF
OS Name : Windows 11 (64-bit)
OS Version : 2009
OS Build : 22000.651
Current ANSI codepage : 1252
Plugins : mimeTools.dll NppConverter.dll NppExport.dll