Fixed missed query for search of selection.

If the search was started from the current selected text, the query was not
given to the search command. That means the '*' and '#' commands did not work.