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

Method set_cursor_end

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

Source from the content-addressed store, hash-verified

167 }
168
169 pub fn set_cursor_end(&mut self) {
170 let (line, _, line_start) = self.cursor_line_col();
171 let counts = self.input_line_char_counts();
172 self.cursor = line_start + counts[line];
173 }
174
175 #[allow(dead_code)]
176 pub fn set_cursor_buffer_start(&mut self) {

Callers 2

handle_keyMethod · 0.45
handle_key_eventMethod · 0.45

Calls 2

cursor_line_colMethod · 0.80

Tested by

no test coverage detected