Insert a single typed character in styled mode (auto-escapes).
(&mut self, ch: char, max_length: Option<usize>)
| 648 | |
| 649 | /// Insert a single typed character in styled mode (auto-escapes). |
| 650 | pub fn insert_char_styled(&mut self, ch: char, max_length: Option<usize>) { |
| 651 | let escaped = styling::escape_char(ch); |
| 652 | self.insert_text_styled(&escaped, max_length); |
| 653 | } |
| 654 | |
| 655 | /// Backspace in styled mode: delete visual char before cursor. |
| 656 | pub fn backspace_styled(&mut self) { |
no test coverage detected