Fix pause on colour change in text editor (Windows)

No idea why this fixes it, but it does. Hopefully won't cause any other slowdown