Fix syntax highlighting text change lag