fix grep match pattern highlight handling