MCPcopy Create free account
hub / github.com/cursorless-dev/cursorless / isForward

Function isForward

src/util/selectionUtils.ts:23–25  ·  view source on GitHub ↗
(selection: Selection)

Source from the content-addressed store, hash-verified

21}
22
23export function isForward(selection: Selection) {
24 return selection.active.isAfterOrEqual(selection.anchor);
25}
26
27export function selectionWithEditorFromRange(
28 selection: SelectionWithEditor,

Callers 2

getSelectionInfoFunction · 0.90
selectionFromPositionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected