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

Method input_line_char_counts

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

Source from the content-addressed store, hash-verified

132 }
133
134 fn input_line_char_counts(&self) -> Vec<usize> {
135 self.input.split('\n').map(|l| l.chars().count()).collect()
136 }
137
138 /// Move cursor up one logical line. Returns false if already on first line.
139 pub fn move_cursor_up(&mut self) -> bool {

Callers 3

move_cursor_upMethod · 0.80
move_cursor_downMethod · 0.80
set_cursor_endMethod · 0.80

Calls 2

collectMethod · 0.80
countMethod · 0.45

Tested by

no test coverage detected