Skip to content

Commit f045ff9

Browse files
Fix 'enter' key binding in system toolbar in Vi mode.
1 parent ba12b23 commit f045ff9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/prompt_toolkit/widgets/toolbars.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ def _cancel_vi(event: E) -> None:
152152
async def _accept_vi(event: E) -> None:
153153
"Run system command."
154154
event.app.vi_state.input_mode = InputMode.NAVIGATION
155-
event.app.run_system_command(
155+
await event.app.run_system_command(
156156
self.system_buffer.text,
157157
display_before_text=self._get_display_before_text(),
158158
)

0 commit comments

Comments
 (0)