(raw: &str)
| 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")] |
no outgoing calls