cursorLineEnd function

bool cursorLineEnd(
  1. StateCommandTarget target
)

Move the selection to the end of the line.

Implementation

bool cursorLineEnd(StateCommandTarget target) {
  return _moveSel(target, (range) {
    final line = target.state.doc.lineAt(range.head);
    return EditorSelection.cursor(line.to, assoc: -1);
  });
}