-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Description
Is there an existing issue for this?
- I have searched the existing issues
Description of the Issue
Look at the attached file.
Probably the following are all manifestations of a single bug but:
1 - If viewed with Language>E>ErrorLexer it renders entirely in red despite the first escape sequence appearing halfway into line 2.
2 - NP++ will not delete any text that includes an ANSI escape sequence while in View>Show Symbol>[uncheck all]
3 - While in View>ShowSymbol>ShowAllCharacters, the CR and LF characters following an escape sequence are rendered in the wrong color.
Steps To Reproduce
- Open attached file "setupWindows.py_shorter.log" in NP++.
- If ErrorList not already selected as Language (it's a .log; should default that way), do Language>E>ErrorList
- Observe colors
- Set View>ShowSymbol>[uncheck all] (if not already set)
- Using mouse, select text that includes an ANSI escape sequence (in this file, these occur just before the string "ERROR::" and at the end of those lines, immediately before the CR LF newline)
- Press DEL key
Current Behavior
Portions of the file that should be rendered in default foreground color (white for me) render red.
NP++ won't delete text that includes ANSI escape sequences while in mode View>ShowSymbol>[uncheck all].
Oddly, if View>ShowSymbol>ShowAllCharacters is selected, NP++ will delete such text (either with DEL key or by backspacing).
Expected Behavior
Text before any ANSI escape sequences and after [0m (ANSI color reset) should render in default foreground color.
It should be possible to delete text that includes ANSI escape sequences, even when in View>Show Symbol>[uncheck all].
When in View>ShowSymbol>ShowAllCharacters, non-printable characters (like CR and LF) should display in either the usual color or the color selected by the ANSI escape sequence.
Debug Information
Notepad++ v8.8.7 (64-bit)
Build time: Oct 19 2025 - 16:19:15
Scintilla/Lexilla included: 5.5.7/5.4.5
Boost Regex included: 1_85
Path: C:\Program Files\Notepad++\notepad++.exe
Command Line: "C:\Users\lindb\OneDrive\Desktop\setupWindows.py_shorter.log"
Admin mode: OFF
Local Conf mode: OFF
Cloud Config: OFF
Periodic Backup: OFF
Placeholders: OFF
Scintilla Rendering Mode: SC_TECHNOLOGY_DEFAULT (0)
Multi-instance Mode: monoInst
asNotepad: OFF
File Status Auto-Detection: cdEnabledNew (for current file/tab only) + cdAutoUpdate
Dark Mode: OFF
Display Info:
primary monitor: 7680x2160, scaling 125%
visible monitors count: 1
installed Display Class adapters:
0000: Description - Intel(R) UHD Graphics 770
0000: DriverVersion - 32.0.101.7040
0001: Description - NVIDIA GeForce RTX 2060 SUPER
0001: DriverVersion - 32.0.15.7688
0002: Description - NVIDIA GeForce RTX 5070 Ti
0002: DriverVersion - 32.0.15.7688
OS Name: Windows 11 Pro (64-bit)
OS Version: 25H2
OS Build: 26200.7019
Current ANSI codepage: 1252
Plugins:
ConfigUpdater (2.3)
HexEditor (0.9.14)
mimeTools (3.1)
NppConverter (4.7)
NppExport (0.4)
NPPJSONViewer (2.1.1)
_CustomizeToolbar (5.3)Anything else?
No response