notepad-plus-plus / notepad-plus-plus/notepad-plus-plus
"In selection" checkbox greyed out although there is a selection
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 29.4k
- Forks
- 5.4k
- PR merge metrics
- No merged PRs in 30d
Description
Description of the Issue
Sometimes, although there is a selection, the "In selection" checkbox is greyed out in the Find / Replace / Mark tabs of the Find / Replace / Find in Files / Mark dialog box. I should not be greyed out when there is a selection. This does not happen always. See steps to reproduce the issue the simplest way.
Steps to Reproduce the Issue
- Open Notepad++ 7.9.3 on Windows 10
- Type "Hello" (no quotes)
- Select Search then Find in the menu : "Hello" appears in "Find what", and the "In selection" checkbox is greyed out
- Press ESC to close the dialog box
- Select Search then Find in the menu : "Hello" appears in "Find what", and the "In selection" checkbox is greyed out
- Press ESC to close the dialog box
- Select Search then Find in the menu : "Hello" appears in "Find what", and the "In selection" checkbox is NOT greyed out
Expected Behavior
The "In selection" checkbox should not be greyed out when there is a selection, be it a manual or an automatic selection.
Actual Behavior
The "In selection" was greyed out although "Hello" was selected when the Find dialog was opened the second time.
Debug Information
Notepad++ v7.9.3 (64-bit)
Build time : Feb 14 2021 - 03:15:58
Path : C:\Program Files\Notepad++\notepad++.exe
Admin mode : OFF
Local Conf mode : OFF
OS Name : Windows 10 Pro (64-bit)
OS Version : 1909
OS Build : 18363.1379
Current ANSI codepage : 1252
Plugins : mimeTools.dll NppConverter.dll NppExport.dll
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the sequence in the Find / Replace / Find in Files / Mark dialog, using the selection and repeated open-and-close steps from the issue. Trace how the dialog decides whether the "In selection" checkbox is enabled. Done means the checkbox is enabled whenever a manual or automatic selection exists, including after reopening the dialog.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100