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

Method clear

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

Dismiss the selection entirely.

(&mut self)

Source from the content-addressed store, hash-verified

48
49 /// Dismiss the selection entirely.
50 pub fn clear(&mut self) {
51 self.anchor = None;
52 self.cursor = None;
53 self.dragging = false;
54 }
55
56 /// True if there is a visible selection (dragging or finalized).
57 pub fn is_active(&self) -> bool {

Callers 6

handle_eventMethod · 0.45
copy_selectionMethod · 0.45
drawMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected