MCPcopy Create free account
hub / github.com/TheRedDeveloper/ply-engine / cursor_len_styled

Method cursor_len_styled

src/text_input.rs:567–569  ·  view source on GitHub ↗

Get the visual length of the text (ignoring markup).

(&self)

Source from the content-addressed store, hash-verified

565impl TextEditState {
566 /// Get the visual length of the text (ignoring markup).
567 fn cursor_len_styled(&self) -> usize {
568 styling::cursor_len(&self.text)
569 }
570
571 /// Get the selected text in visual space, returning the visible chars.
572 pub fn selected_text_styled(&self) -> String {

Callers 6

insert_text_styledMethod · 0.80
delete_forward_styledMethod · 0.80
move_right_styledMethod · 0.80
move_end_styledMethod · 0.80
move_down_styledMethod · 0.80
select_all_styledMethod · 0.80

Calls 1

cursor_lenFunction · 0.85

Tested by

no test coverage detected