User forums > Using Code::Blocks
erroneous behavior of the search function
frithjofh:
Hello everybody,
I just realized, that the normal search function (strg+F) does not work correctly when invoked by the context menu when the item to be searched for is in a commentary. It just does nothing. Searching the item with ctrl+F does work as expected.
OS SuSE Linux 11.3 x86_64
version C::B: svn 7141 self compiled
Best regards
frithjofh
Jenna:
Which context menu do you use to invoke the search ?
frithjofh:
the right mouse button context menu. there the third command from above: "find references of:"
Jenna:
This is a totally different search command, than Strg+F.
It searches for references of the symbol under the caret (e.g. a vraiable) in the sources, it's not a literal search.
frithjofh:
That may be so, but it does not change the fact about the misbehaving: invoking the search by right-click on a term in a comment does nothing whereas doing the same on a non comment term does a search as expected ...
That a term inside a comment falls out of the category of source symbol does not seem quite right. Many times one just comments-out a piece of code to test an alternative, the commented line still "stays" code in that sense ...
Well, just my opinion, and I'm definitively not a pro ...
Maybe the difference between code searching and literal searching just does not come out clearly enough through the names of the commands or its locations ...
Regards
Navigation
[0] Message Index
[#] Next page
Go to full version