SearchEngine: Fixing recently introduced bug when replacement string contains searched-for string.  We can't select replacement text without remembering whether selection is 'found' text or not.  Should revisit and correct this later.