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

Method cursor_position

crates/opencode-tui/src/components/prompt.rs:501–503  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

499 }
500
501 pub fn cursor_position(&self) -> usize {
502 self.cursor_position
503 }
504
505 pub fn take_input(&mut self) -> String {
506 let input = std::mem::take(&mut self.input);

Callers 1

handle_eventMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected