From 0cebc94927675c8098365908be79bd900a58943c Mon Sep 17 00:00:00 2001 From: Bryan Phelps Date: Fri, 13 Nov 2020 18:18:22 -0800 Subject: [PATCH] Fix #2604: Ex command binding fails --- src/Store/KeyBindingsStoreConnector.re | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Store/KeyBindingsStoreConnector.re b/src/Store/KeyBindingsStoreConnector.re index 876a3601b2..a3d316e79d 100644 --- a/src/Store/KeyBindingsStoreConnector.re +++ b/src/Store/KeyBindingsStoreConnector.re @@ -89,8 +89,9 @@ let start = maybeKeyBindingsFilePath => { ); let executeExCommandEffect = command => - Isolinear.Effect.create(~name="keybindings.executeExCommand", () => - ignore(Vim.command(command): (Vim.Context.t, list(Vim.Effect.t))) + Isolinear.Effect.createWithDispatch( + ~name="keybindings.executeExCommand", dispatch => + dispatch(Actions.VimExecuteCommand(command)) ); let updater = (state: State.t, action: Actions.t) => {