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

Method select_all_styled

src/text_input.rs:1056–1064  ·  view source on GitHub ↗

Select all in styled mode.

(&mut self)

Source from the content-addressed store, hash-verified

1054
1055 /// Select all in styled mode.
1056 pub fn select_all_styled(&mut self) {
1057 let vis_len = self.cursor_len_styled();
1058 if vis_len > 0 {
1059 self.selection_anchor = Some(0);
1060 self.cursor_pos = vis_len;
1061 self.snap_to_content_pos();
1062 }
1063 self.reset_blink();
1064 }
1065
1066 /// Click to cursor in styled mode.
1067 /// `click_visual_pos` is the visual character position determined from click x.

Calls 3

cursor_len_styledMethod · 0.80
snap_to_content_posMethod · 0.80
reset_blinkMethod · 0.80

Tested by 1