setCursor method

void setCursor(
  1. Position pos, {
  2. Map? options,
})

Set the cursor position. You can either pass a single {line, ch} object, or the line and the character as two separate parameters. Will replace all selections with a single, empty selection at the given position. The supported options are the same as for setSelection.

Implementation

void setCursor(Position pos, {Map? options}) {
  callArgs('setCursor', [pos.toProxy(), options]);
}