Crash when doing "import math; math.sin?" #10229
In the IPython session below, I executed
When doing this, IPython crashes.
Below, you will see
The text was updated successfully, but these errors were encountered:
Closes gh-10229 Please don't merge this just yet. jonathanslenders I discovered after updating that we can no longer set text in the buffer with a `pre_run` function, because `pre_run_callables` reset the buffer immediately after that. I've worked around this by adding another callable to `pre_run_callables` which sets the text that I want, but I don't know if this is the right way to do it, or whether it works with previous releases of prompt_toolkit.