"use strict";

exports.__esModule = true;
const command = {
  name: 'extendCellsSelectionRight',
  callback(hot) {
    const {
      highlight
    } = hot.getSelectedRangeLast();
    if (highlight.isCell() || highlight.isHeader() && hot.selection.isSelectedByColumnHeader()) {
      hot.selection.transformEnd(0, hot.getDirectionFactor());
    }
  }
};
exports.command = command;