getCursor method

Position getCursor([
  1. String? start
])

Retrieve one end of the primary selection. start is a an optional string indicating which end of the selection to return. It may be "from", "to", "head" (the side of the selection that moves when you press shift+arrow), or "anchor" (the fixed side of the selection). Omitting the argument is the same as passing "head". A {line, ch} object will be returned.

Implementation

Position getCursor([String? start]) => Position.fromProxy(
    start == null ? call('getCursor') : callArg('getCursor', start));