From: Daniel Carl Date: Sat, 29 Jun 2013 17:00:52 +0000 (+0200) Subject: Fixed none set mode if a unknown command was run. X-Git-Url: https://git.owens.tech/projects.html/projects.html/git?a=commitdiff_plain;h=7273f22862ac17a58157a9ec1ee840861a7df460;p=vimb.git Fixed none set mode if a unknown command was run. If a wrong command was run from inputbox the error message appeared but vimb kept in command mode so that the normal mode commands did not work. Now the mode is set to normal mode if a command could not be found. --- diff --git a/src/command.c b/src/command.c index 9ffb6f0..286ef3b 100644 --- a/src/command.c +++ b/src/command.c @@ -233,6 +233,7 @@ gboolean command_run_string(const char *input) Command command = NULL; Arg arg = {0}; if (!command_parse_from_string(input, &command, &arg, &vb.state.count)) { + vb_set_mode(VB_MODE_NORMAL, false); return false; }