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

Method update

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

Update the drag endpoint.

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

Source from the content-addressed store, hash-verified

36
37 /// Update the drag endpoint.
38 pub fn update(&mut self, row: u16, col: u16) {
39 if self.dragging {
40 self.cursor = Some((row, col));
41 }
42 }
43
44 /// Mouse button released — keep the selection visible but stop tracking.
45 pub fn finalize(&mut self) {

Calls

no outgoing calls