Fix interleave of text insert when changing grep pattern