MCPcopy Index your code
hub / github.com/ChrisFeldmeier/OpenCodeRust / is_active

Method is_active

crates/opencode-tui/src/ui/selection.rs:57–59  ·  view source on GitHub ↗

True if there is a visible selection (dragging or finalized).

(&self)

Source from the content-addressed store, hash-verified

55
56 /// True if there is a visible selection (dragging or finalized).
57 pub fn is_active(&self) -> bool {
58 self.anchor.is_some() && self.cursor.is_some()
59 }
60
61 /// True if the user is currently dragging.
62 pub fn is_selecting(&self) -> bool {

Callers 3

handle_eventMethod · 0.45
copy_selectionMethod · 0.45
drawMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected