Skip to content

Commit 165619d

Browse files
Don't reset text in accept_handler (prompt_toolkit change).
1 parent 1319ce6 commit 165619d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ptpython/python_input.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,7 @@ def _accept_handler(self, buff):
257257
app = get_app()
258258
app.exit(result=buff.text)
259259
app.pre_run_callables.append(buff.reset)
260+
return True # Keep text, we call 'reset' later on.
260261

261262
@property
262263
def option_count(self):

0 commit comments

Comments
 (0)