Skip to content

Going to a "search result" can put the caret inside a multibyte UTF-8 character #16879

@alankilborn

Description

@alankilborn

Where did the issue template go????


Discussed on the Community site, https://community.notepad-plus-plus.org/topic/27037


STR:

Paste the following text into a new N++ tab: blue💙heart; observe it looks like this:
Image

Do a Find All in Current Document search for 💙; observe this in Search results window:
Image

Select ue in "Blue" in the text editor tab and press Delete; observe that it looks like this:
Image

Double-click the Line 1: blue💙heart line in Search results; observe that the text editor tab now appears like this:
Image

Type a u; observe that the text editor tab data now looks like this:
Image

Actual Behavior: Text corruption

Expected Behavior: No text corruption


Debug Info:

Notepad++ v8.8.2 (64-bit)
Build time : Jun 26 2025 - 01:12:36
Scintilla/Lexilla included : 5.5.7/5.4.5
Boost Regex included : 1_85
Path : C:\NotepadPlusPlus\Misc_NoBackup\Releases\npp.8.8.2\npp.8.8.2.portable.x64\notepad++.exe
Command Line : -titleAdd="8.8.2 64-bit" -multiInst
Admin mode : OFF
Local Conf mode : ON
Cloud Config : OFF
Periodic Backup : ON
Placeholders : OFF
Scintilla Rendering Mode : SC_TECHNOLOGY_DIRECTWRITE (1)
Multi-instance Mode : monoInst
File Status Auto-Detection : cdEnabledNew (for current file/tab only)
Dark Mode : OFF
Display Info :
primary monitor: 1920x1080, scaling 100%
visible monitors count: 4
installed Display Class adapters:
0000: Description - VMware SVGA 3D
0000: DriverVersion - 9.17.4.2
OS Name : Windows 11 Pro (64-bit)
OS Version : 24H2
OS Build : 26100.4652
Current ANSI codepage : 1252
Plugins :
mimeTools (3.1)
NppConverter (4.6)
NppExport (0.4)
PythonScript (3.0.23)

Metadata

Metadata

Assignees

No one assigned

    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