Skip to content

Commit

Permalink
Fix 'enter' key binding in system toolbar in Vi mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanslenders committed May 31, 2022
1 parent ba12b23 commit f045ff9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/prompt_toolkit/widgets/toolbars.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ def _cancel_vi(event: E) -> None:
async def _accept_vi(event: E) -> None:
"Run system command."
event.app.vi_state.input_mode = InputMode.NAVIGATION
event.app.run_system_command(
await event.app.run_system_command(
self.system_buffer.text,
display_before_text=self._get_display_before_text(),
)
Expand Down

0 comments on commit f045ff9

Please sign in to comment.