Fix matching brace highlighting when editing text.