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

Word under caret is needlessly selected on running "Find in Search Results"

Open
#13,414 3 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

STR:
Open the Find dialog and execute a command displaying the Search Results window.
Open the "Find in Search Results" dialog.

Result:
The word under the caret in the editing view is selected.
The "Find what" field in the Find dialog is filled with that word.

https://github.com/notepad-plus-plus/notepad-plus-plus/blob/9b67c93ef9e70f114ce56fee3bbd9ffb6e784742/PowerEditor/src/NppBigSwitch.cpp#L425


Notepad++ 8.5.1

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 with the command handling at PowerEditor/src/NppBigSwitch.cpp:425 and reproduce the reported steps in Notepad++ 8.5.1: display Search Results, then open "Find in Search Results." Trace why the editing view's caret word is selected and copied into "Find what"; done means the dialog opens without that unintended selection or fill.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
desktop
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.