cnwizards icon indicating copy to clipboard operation
cnwizards copied to clipboard

Bug in search by F3

Open ghost opened this issue 7 years ago • 7 comments

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.

ghost avatar Dec 02 '18 04:12 ghost

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.

shanzhashu avatar Dec 03 '18 07:12 shanzhashu

Delphi XE7 and CnPack Ver: 1.1.4.924

migozz avatar Dec 03 '18 21:12 migozz

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.

baka0815 avatar Dec 04 '18 09:12 baka0815

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

shanzhashu avatar Dec 07 '18 11:12 shanzhashu

Thanks, now it works fine.

migozz avatar Dec 14 '18 08:12 migozz

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.

migozz avatar Dec 26 '18 06:12 migozz

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.

Demphi avatar Apr 09 '19 10:04 Demphi