The Search>Find command behaves differently when text is selected. If the selection spans multiple lines, the Search in Selection setting is selected by default. If the selection does not contain line breaks, the Search in Current Buffer setting is chosen, and the selection is copied into the search string field.