[TextEditor] Guard against potential vi status area infinite loop.