tab method

  1. @override
void tab()
override

UncompleteDocumentation UncompleteDocumentation

Implementation

@override
void tab() {
  final nextStop = _tabStops.find(_buffer.cursorX + 1, _viewWidth);

  if (nextStop != null) {
    _buffer.setCursorX(nextStop);
  } else {
    _buffer.setCursorX(_viewWidth);
    _buffer.cursorGoForward(); // Enter pending-wrap state
  }
}