Fix: only reset buffer when using AbortAction.RETRY, but after resetting the CommandLineInterface.
Fix: only reset buffer when using AbortAction.RETRY, but after resetting the CommandLineInterface.

niklasf/python-prompt-toolkit,melund/python-prompt-toolkit,amjith/python-prompt-toolkit,jonathanslenders/python-prompt-toolkit