adobe/brackets — pull request #1865 by peterflynn (2012-10-17 20:10:22+00:00)
Title: Fix bug #1849 (Incremental Find doesn't clear highlight when search changes to no results)

Fix bug #1849 (Incremental Find doesn't clear highlight when search changes to no results)

Clear selection when no results found in file. Leave cursor where selection used to be, which typically was the location of an earlier matching result from before the query was done being typed. (This seems consistent with how incremental search works in other editors & browsers).