Skip to content

[Bug] Notepad3 may crash when Edit - Remove Duplicate Lines #5526

@yfdyh000

Description

@yfdyh000

Notepad3 (x64) 6.25.822.1 on Windows 10 22H2.

I encountered the issue by chance, the program may crash without warning when this function is used, resulting in the loss of unsaved content.

Steps to reproduce:
Copy the following content to the clipboard.

1
2
3
4
1
2
3
4

Open Notepad3 to get a blank workspace.
Paste the content into the program.
Press Ctrl+A to select all content.
Click the Edit -> Lines -> Remove Duplicate Lines.

You may observe the program crashing.
If the content you copy is the following, you will not encounter a crash.

1
2
1
2

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions