Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: foobar on August 24, 2016, 10:09:04 am

Title: [Bug report] Find occurrences fails - solved
Post by: foobar on August 24, 2016, 10:09:04 am
Hi There,

Selecting just a part of a word and selecting "Find occurrences" won't find anything.

Clicking the search button manually afterwards works fine. So the selected part has been taken over correctly but the search itself seems to fail for any reason.

This happens at least with version 16.01 (rev 10702) (SDK version 1.29.0) on x64 win7 machines, others haven't been tested so far.

A simple file demonstrates the problem:
Code
asdf
asdf
asdf
asfd
asdf
asdf
asfd

Searching for "asdf" finds 5 matches, searching for "sdf" finds nothing when sdf is just marked and "Find occurrences" is selected via the right-click context menu, but searching "sdf" manually in "Thread search" tab works fine again and results also with 5 matches.

Maybe sb. can have a look at this, please?

Thanks!
Title: Re: [Bug report] Find occurrences fails
Post by: ollydbg on August 24, 2016, 03:54:09 pm
I have the same behavior.
But this is the expect result, because if you open the Threadsearch option dialog, there is a check box that said:
"Use default options when running Find occurrence"
This means the two kind of search use different options. :)
Title: Re: [Bug report] Find occurrences fails
Post by: foobar on August 24, 2016, 04:21:42 pm
You are right, there is really such a setting :)

In that case thanks a lot for clarification!