Don't clear the whole buffer when repaint