Author Topic: Find within Editor does not work properly  (Read 3385 times)

mariocup

  • Guest
Find within Editor does not work properly
« 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

Offline dmoore

  • Developer
  • Lives here!
  • *****
  • Posts: 1576
Re: Find within Editor does not work properly
« Reply #1 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

Offline pauliusz

  • Multiple posting newcomer
  • *
  • Posts: 73