MCPcopy Create free account
hub / github.com/GCWing/BitFun / set_cursor_home

Method set_cursor_home

src/apps/cli/src/ui/text_input.rs:164–167  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

162 }
163
164 pub fn set_cursor_home(&mut self) {
165 let (_, _, line_start) = self.cursor_line_col();
166 self.cursor = line_start;
167 }
168
169 pub fn set_cursor_end(&mut self) {
170 let (line, _, line_start) = self.cursor_line_col();

Callers 2

handle_keyMethod · 0.45
handle_key_eventMethod · 0.45

Calls 1

cursor_line_colMethod · 0.80

Tested by

no test coverage detected