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

Method insert_paste

src/apps/cli/src/ui/text_input.rs:207–212  ·  view source on GitHub ↗
(&mut self, text: &str)

Source from the content-addressed store, hash-verified

205 }
206
207 pub fn insert_paste(&mut self, text: &str) {
208 let normalized = text.replace("\r\n", "\n").replace('\r', "\n");
209 for c in normalized.chars() {
210 self.handle_char(c);
211 }
212 }
213
214 // ── Visual line calculation (for dynamic height and cursor positioning) ──
215

Callers 3

runMethod · 0.80
handle_non_key_eventMethod · 0.80
handle_keyMethod · 0.80

Calls 2

replaceMethod · 0.65
handle_charMethod · 0.45

Tested by

no test coverage detected