Bug in search by F3
Press Ctrl+F, and type search string, and press Enter. Press F3, and it searches next occurrence of text entered in search window. Then, move cursor to white space, or to another word. Press F3, and it searches completely different text. I can't see, WHAT text will be searched. This is because option "F3/Shift F3 to Search Selected Text" is enabled. But no text was selected when F3 was pressed. Then, you search several occurrences of entered text (by Ctrl+F), move cursor, and it started to searching different text, but nothing was changed. And I don't remember what text was selected last time, maybe a long time ago. If it is remembered somewhere, but I don't know where, and I don't know what text will be searched the next time when I will press F3.
Could you tell which version of Delphi and CnWizards it occurs? In our design, it SHOULD search the PREVIOUS searched Text (maybe selected or in Ctrl+F dialog), but accroding your description, there'll be a bug to get the PREVIOUS text when no selected text in editor.
Delphi XE7 and CnPack Ver: 1.1.4.924
Tested with Delphi 10.1 Berlin
If you select a text in the editor (say True) and press F3 the next occurrence of True is searched.
If you now press Strg+F and search for my text, the internal Delphi search finds my text.
If you then deselect the text (e.g. click into an empty space) and press F3 it's searching again for True.
I've tried to fix this problem in our new nightly-build version 953, could you please download and verify it again?
http://www.cnpack.org/downbuilds.php
Thanks, now it works fine.
Maybe it doesn't always work.
Press Ctrl+F, Enter 4, Search.
Press F3, it searches for 4.
Click on empty space.
Press F3, it does not searching anymore.
Hi, Is the bug back again ? I am using Delphi 10.1 Berlin Version 24.0.25048.9432 with CnPack Ver: 1.1.6.959 Build 2019.01.14 CTRL+F => searched text is found and press F3 finds next occurrence . Click anywhere or select any other text and F3 does not work anymore.