forwardIndex method

void forwardIndex()

Implementation

void forwardIndex() {
  if (_cursorX == viewWidth - 1) return;
  if (_cursorX == _marginRight && isInVerticalMargin) {
    for (var row = absoluteMarginTop; row <= absoluteMarginBottom; row++) {
      lines[row].removeCells(
        _marginLeft,
        1,
        _blankCellStyle,
        _marginRight + 1,
      );
    }
    return;
  }
  moveCursorX(1);
}