(self)
| 1024 | return completion |
| 1025 | |
| 1026 | def on_control_d(self): |
| 1027 | if self.current_line == "": |
| 1028 | raise SystemExit() |
| 1029 | else: |
| 1030 | self.current_line = ( |
| 1031 | self.current_line[: self.cursor_offset] |
| 1032 | + self.current_line[(self.cursor_offset + 1) :] |
| 1033 | ) |
| 1034 | |
| 1035 | def cut_to_buffer(self): |
| 1036 | self.cut_buffer = self.current_line[self.cursor_offset :] |