Insert 'text' at the insertion point.
(self, text: str | list[str])
| 567 | return prompt_len + sum(char_widths[:pos]), y |
| 568 | |
| 569 | def insert(self, text: str | list[str]) -> None: |
| 570 | """Insert 'text' at the insertion point.""" |
| 571 | self.buffer[self.pos : self.pos] = list(text) |
| 572 | self.pos += len(text) |
| 573 | self.dirty = True |
| 574 | |
| 575 | def update_cursor(self) -> None: |
| 576 | """Move the cursor to reflect changes in self.pos""" |
no test coverage detected