Updated highlighting code to properly reset to black text when no matches are selected.