Skip to content

[REGRESSION] Switching between several tabs with different syntax causes previous syntax highlighting to be used in current tab #16154

@PhilippeVanCoppenolle

Description

@PhilippeVanCoppenolle

Is there an existing issue for this?

  • I have searched the existing issues

Description of the Issue

This seems to be new in NPP 8.7.6 (maybe since NPP 8.7.5?):
I have several files open, each with a different syntax, e.g. IBM /390 assembler, IBM ZAP (= patch utility syntax), Software AG Natural, ...
When I switch from e.g. Natural to /390 assembler, the assembler code is highlighted using the Natural color scheme.
It looks as if on tab switching the current syntax definitions are not applied, but that of the previous tab.
I can correct this by selecting explicitly the current language again, although this is marked (correctly).

Steps To Reproduce

  1. open at least 2 files with different syntax, e.g. IBM /390 assembler and Fortran
  2. select tab 1, and then tab 2
  3. only after re-applying the language, you get the correct colors again. Although the value for the current language was correct.

Current Behavior

On tab switching, you get the color scheme of the previous tab.

Expected Behavior

The color scheme of the currently selected language should be applied on tab switching.

Debug Information

Notepad++ v8.7.6   (64-bit)
Build time : Jan 24 2025 - 08:27:33
Path : C:\Program Files\Notepad++\notepad++.exe
Command Line : 
Admin mode : OFF
Local Conf mode : OFF
Cloud Config : OFF
Periodic Backup : ON
Placeholders : OFF
DirectWrite : ON
Multi-instance Mode : monoInst
File Status Auto-Detection : cdEnabledNew (for current file/tab only) + cdAutoUpdate
Dark Mode : OFF
OS Name : Windows 11 Enterprise (64-bit)
OS Version : 23H2
OS Build : 22631.4751
Current ANSI codepage : 1252
Plugins : 
    AutoSave (2)
    ComparePlugin (2.0.2)
    Explorer (1.9.9)
    HexEditor (0.9.12)
    MarkdownViewerPlusPlus (0.8.2)
    mimeTools (3.1)
    NppConverter (4.6)
    NppExport (0.4)
    NPPJSONViewer (2.0.8)
    XMLTools (3.1.1.13)

Anything else?

No response

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions