Steps to Reproduce the Issue
- Create some text
tttttt in a new Notepad++ tab
- Invoke Incremental Search with Ctrl+Alt+i
- Enter
t in the Find edit box; observe that one of the t in the edit zone is selected
- Press Find Next keyboard shortcut (F3) (or Find Previous keyboard shortcut (Shift+F3))
Expected Behavior
The next (or previous) occurrence of t should be selected.
Actual Behavior
F3 (or Shift+F3) does nothing.
Analysis
The Incremental Search accelerator table is created here:
|
_hIncFindAccTab = ::CreateAcceleratorTable(tmpIncrFindAccelArray, static_cast<int32_t>(nb)); |
and is soon after and wrongly deleted here:
|
if (_hIncFindAccTab) |
|
::DestroyAcceleratorTable(_hIncFindAccTab); |
Debug Information
Notepad++ v8.6 (64-bit)
Build time : Nov 23 2023 - 16:58:44
Path : C:\NotepadPlusPlus\Misc_NoBackup\Releases\npp.8.6\npp.8.6.portable.x64\notepad++.exe
Command Line : -titleAdd="8.6 64-bit" -multiInst
Admin mode : OFF
Local Conf mode : ON
Cloud Config : OFF
OS Name : Windows 11 Pro (64-bit)
OS Version : 22H2
OS Build : 22621.2715
Current ANSI codepage : 1252
Plugins :
mimeTools (2.9)
NppConverter (4.5)
NppExport (0.4)
PythonScript (3.0.16)
Steps to Reproduce the Issue
ttttttin a new Notepad++ tabtin theFindedit box; observe that one of thetin the edit zone is selectedExpected Behavior
The next (or previous) occurrence of
tshould be selected.Actual Behavior
F3 (or Shift+F3) does nothing.
Analysis
The Incremental Search accelerator table is created here:
notepad-plus-plus/PowerEditor/src/WinControls/shortcut/shortcut.cpp
Line 625 in 4e6bbbc
and is soon after and wrongly deleted here:
notepad-plus-plus/PowerEditor/src/WinControls/shortcut/shortcut.cpp
Lines 628 to 629 in 4e6bbbc
Debug Information
Notepad++ v8.6 (64-bit)
Build time : Nov 23 2023 - 16:58:44
Path : C:\NotepadPlusPlus\Misc_NoBackup\Releases\npp.8.6\npp.8.6.portable.x64\notepad++.exe
Command Line : -titleAdd="8.6 64-bit" -multiInst
Admin mode : OFF
Local Conf mode : ON
Cloud Config : OFF
OS Name : Windows 11 Pro (64-bit)
OS Version : 22H2
OS Build : 22621.2715
Current ANSI codepage : 1252
Plugins :
mimeTools (2.9)
NppConverter (4.5)
NppExport (0.4)
PythonScript (3.0.16)