Skip to content

Commit f1aefcc

Browse files
Bugfix: pass handle_sigint from Application.run to Application.run_async.
1 parent 51ccb92 commit f1aefcc

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

prompt_toolkit/application/application.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -935,7 +935,11 @@ def run_in_thread() -> None:
935935
set_event_loop(loop)
936936

937937
return loop.run_until_complete(
938-
self.run_async(pre_run=pre_run, set_exception_handler=set_exception_handler)
938+
self.run_async(
939+
pre_run=pre_run,
940+
set_exception_handler=set_exception_handler,
941+
handle_sigint=handle_sigint,
942+
)
939943
)
940944

941945
def _handle_exception(

0 commit comments

Comments
 (0)