MCPcopy Create free account
hub / github.com/ChrisFeldmeier/OpenCodeRust / start

Method start

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

Begin a new selection at (row, col).

(&mut self, row: u16, col: u16)

Source from the content-addressed store, hash-verified

29
30 /// Begin a new selection at (row, col).
31 pub fn start(&mut self, row: u16, col: u16) {
32 self.anchor = Some((row, col));
33 self.cursor = Some((row, col));
34 self.dragging = true;
35 }
36
37 /// Update the drag endpoint.
38 pub fn update(&mut self, row: u16, col: u16) {

Calls

no outgoing calls