News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

Find within Editor does not work properly

Started by mariocup, May 04, 2007, 04:32:41 PM

Previous topic - Next topic

mariocup

Hi,

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


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

dmoore

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
Python plugins: [url="https://github.com/spillz/codeblocks-python"]https://github.com/spillz/codeblocks-python[/url]
Code::Blocks Daily Builds -- Ubuntu PPA: [url="https://launchpad.net/~damien-moore/+archive/codeblocks"]https://launchpad.net/~damien-moore/+archive/codeblocks[/url]