notepad-plus-plus / notepad-plus-plus/notepad-plus-plus

Bug Report: Find and Replace Functionality Issue in Notepad++

Open
#14,967 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
29.4k
Forks
5.4k
PR merge metrics
No merged PRs in 30d

Description

Bug Report: Find and Replace Functionality Issue in Notepad++
Description:
The Find and Replace functionality in Notepad++ appears to have a bug when utilizing the Extended search mode. Specifically, when attempting to find and replace occurrences of the string \t\r\n with \r\n, the search mode fails to function as expected.

Steps to Reproduce:

Open Notepad++.
Access the Find and Replace dialog (Ctrl + H).
In the "Find what" field, enter \t\r\n.
In the "Replace with" field, enter \r\n.
Ensure that the Search Mode is set to "Extended".
Click on the "Replace All" button or perform a step to initiate the replacement process.

Expected Behavior:

The Find and Replace operation should locate all occurrences of the string \t\r\n in the text and replace them with the string \r\n.

Actual Behavior:

The Find and Replace operation does not function correctly when using the Extended search mode. It fails to find and replace the occurrences of \t\r\n as expected. No replacements are made.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue in Notepad++'s Find and Replace dialog, opened with Ctrl+H, using Extended search mode and the stated find and replacement strings. Trace the search and Replace All entry points to determine why the tab and line-ending sequence is not matched; done means all occurrences are replaced as expected.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
desktop, search
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.