(self, remove_from_history=True)
| 1349 | ) |
| 1350 | |
| 1351 | def clear_current_block(self, remove_from_history=True): |
| 1352 | self.display_buffer = [] |
| 1353 | if remove_from_history: |
| 1354 | del self.history[-len(self.buffer) :] |
| 1355 | del self.all_logical_lines[-len(self.buffer) :] |
| 1356 | self.buffer = [] |
| 1357 | self.cursor_offset = 0 |
| 1358 | self.saved_indent = 0 |
| 1359 | self.current_line = "" |
| 1360 | self.cursor_offset = len(self.current_line) |
| 1361 | |
| 1362 | def get_current_block(self): |
| 1363 | """ |
no outgoing calls
no test coverage detected