reduce number of repaints in TextArea