[TextEditor] Fixed drawing bug.