[TextEditor] Optimized tab stop calculation.