Fix hlsearch handling