MCPcopy Create free account
hub / github.com/ipython/ipython / reformat_and_execute

Function reformat_and_execute

IPython/terminal/shortcuts.py:47–49  ·  view source on GitHub ↗
(event)

Source from the content-addressed store, hash-verified

45 ))(return_handler)
46
47 def reformat_and_execute(event):
48 reformat_text_before_cursor(event.current_buffer, event.current_buffer.document, shell)
49 event.current_buffer.validate_and_handle()
50
51 kb.add('escape', 'enter', filter=(has_focus(DEFAULT_BUFFER)
52 & ~has_selection

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected