Watch, Follow, &
Connect with Us
Public Report
Report From: Delphi-BCB/IDE/Search/Find    [ Add a report in this area ]  
Report #:  99844   Status: Closed
Search Again doesn't rember the last search text
Project:  Delphi Build #:  16.0.4276.44006
Version:    16.1 Submitted By:   Craig Reynolds
Report Type:  Basic functionality failure Date Reported:  10/9/2011 8:22:50 PM
Severity:    Infrequently encountered problem Last Updated: 2/6/2013 11:36:43 PM
Platform:    All versions Internal Tracking #:  
Resolution: Cannot Reproduce (Resolution Comments) Resolved in Build: : None
Duplicate of:  None
Voting and Rating
Overall Rating: No Ratings Yet
0.00 out of 5
Total Votes: None
Description
This problem also existed in Delphi XE.

When you do a search within a unit and then do something to interupt the search (navigating with the cursor keys for example), when you hit F3 to continue searching, the IDE doesn't use the previous search term, instead it seems to search for the text "//".

The expected behaviour (which is how search has always worked in Windows), is that when you press F3 after doing a search, the search will continue to look for the next match of the last thing you searched for.


Note: There is a related annoyance, where the contents of the search box are cleared each time you press Ctrl+F to start a search. Ideally the existing text would be left in place and just highlighted. If the search did this then the bug mentioned above would be far less significant than it is currently.
Steps to Reproduce:
1. Ctrl+F to start a search
2. Enter some text you know exists in the unit
3. Hit enter to go to the first found match.
4. Use the arrow keys to navigate one character in any direction
5. Hit F3
6. Search will jump to the first match it finds for the text "//", when it should continue searching with your previous search text.

Workarounds
None
Attachment
None
Comments

Teodor Nacu at 10/10/2011 1:01:42 AM -
Hi,
I am not able to reproduce this.
Could you attach a demo project to reproduce the problem?

Thanks,
Teodor Nacu
SDET - IDE, QA RAD Studio

Craig Reynolds at 10/10/2011 9:15:42 PM -
Grrr. Turns out I can reproduce it, sort of, but I don't know what is triggering it.

This time when I reproduced the issue the search text it was falling back to was "edit", not "//". I had done a search for edit earlier, so it looks like something is triggering the change in the search behavior, but I have no idea what that is at this point. Sorty I can't provide better deails than that.

Some more details on my environment:
- Have GExperts installed (provides additional features to IDE)
- Have cnPack installed (provides additional features to the IDe)

Craig Reynolds at 10/10/2011 9:02:28 PM -
Given that you couldn't reproduce the issue, I thought I'd uninstall cnPack and see if it made a difference. After removing cnPack the problem went away, but when I reinstalled cnPack, I still can't reproduce.

I'm not sure if my inability to reproduce currently is just luck, so I'll spend some more time with this and see if I can start reproducing it again.

It's odd that it's gone away, as I've been living with this for a couple of weeks.

Server Response from: ETNACODE01