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

Function make_no_styles_state

src/text_input.rs:3710–3717  ·  view source on GitHub ↗
(raw: &str)

Source from the content-addressed store, hash-verified

3708
3709 #[cfg(feature = "text-styling")]
3710 fn make_no_styles_state(raw: &str) -> TextEditState {
3711 let mut s = TextEditState::default();
3712 s.text = raw.to_string();
3713 s.no_styles_movement = true;
3714 // Snap the cursor to a content boundary at position 0
3715 s.cursor_pos = 0;
3716 s
3717 }
3718
3719 #[test]
3720 #[cfg(feature = "text-styling")]

Calls

no outgoing calls