Update search result highlight when inserting text