Correctly toggled carets upon searching