commit 2fe98292e4e3a87d470deacc6a33e4c4a90693b7 from: Omar Polo date: Fri Mar 26 06:59:43 2021 UTC [eecmd]: emulate emacs: stay in the minibuffer if no match commit - 3c066721b28e5f43299108b989d238a280bb0bf2 commit + 2fe98292e4e3a87d470deacc6a33e4c4a90693b7 blob - ea76161ce074e0e66c62e3f32d97db0864815868 blob + 087c4a2583f16b64436dca3e7295d721c7ac349d --- ui.c +++ ui.c @@ -1016,17 +1016,16 @@ eecmd_select(void) { struct cmds *cmd; - exit_minibuffer(); - minibuffer_hist_save_entry(); - for (cmd = cmds; cmd->cmd != NULL; ++cmd) { if (!strcmp(cmd->cmd, ministate.buf)) { + exit_minibuffer(); + minibuffer_hist_save_entry(); cmd->fn(current_window()); return; } } - message("Unknown command: %s", ministate.buf); + message("No match"); } static void