Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: mariocup on May 04, 2007, 04:32:41 pm

Title: Find within Editor does not work properly
Post by: mariocup on May 04, 2007, 04:32:41 pm
Hi,

with the following code you can reproduce the bug. Add an empty file and type

Code
addr.sin
addr.sin1
addr.sin2

then mark addr.sin with the mouse and then call the Find dialog using Crtl+F or Search->Find. The content addr.sin is put in the find dialog, but if you press now F3 you will get no search results.
If you mark addr.sin again with the mouse and use again Ctrl+F and then F3 you will get the correct search results.

The strange thing is, If you use the option Find uses selected Text the Search with Find Ctrl+F and F3 works properly.

Bye,

Mario
Title: Re: Find within Editor does not work properly
Post by: dmoore on May 04, 2007, 10:44:11 pm
i think i see the problem. I'll take a look at the code and make sure that "use selected text" is checked by default if less than a single line is selected, although that isn't a completely satisfactory fix. If noone else gets to this I'll look late next week or the week after (don't have time to deal with wx2.8 update at the moment). It looks like a very minor change.

for now: to find the next addr.sin instance you will need to deselect the text after the dialog exits THEN press F3 (or otherwise make sure use selected text is checked)

please post as a bug on berlios and put the link here
Title: Re: Find within Editor does not work properly
Post by: pauliusz on May 06, 2007, 12:21:09 pm
http://developer.berlios.de/bugs/?func=detailbug&bug_id=10992&group_id=5358