From 7273f22862ac17a58157a9ec1ee840861a7df460 Mon Sep 17 00:00:00 2001
From: Daniel Carl <danielcarl@gmx.de>
Date: Sat, 29 Jun 2013 19:00:52 +0200
Subject: [PATCH] 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.
---
 src/command.c | 1 +
 1 file changed, 1 insertion(+)

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;
     }
 
-- 
2.20.1