(buffer, document, shell)
| 390 | |
| 391 | |
| 392 | def reformat_text_before_cursor(buffer, document, shell): |
| 393 | text = buffer.delete_before_cursor(len(document.text[: document.cursor_position])) |
| 394 | try: |
| 395 | formatted_text = shell.reformat_handler(text) |
| 396 | buffer.insert_text(formatted_text) |
| 397 | except Exception as e: |
| 398 | buffer.insert_text(text) |
| 399 | |
| 400 | |
| 401 | def handle_return_or_newline_or_execute(event): |
no outgoing calls
no test coverage detected
searching dependent graphs…