From ac9b3a59dd23ab3aa211e79236600a12b7c06e4f Mon Sep 17 00:00:00 2001 From: Daniel Carl Date: Thu, 13 Jun 2013 13:18:21 +0200 Subject: [PATCH] Fixed errors on :quit called by kebinding (#34). If vimb was quit by keybinding, we tried to update the status bar after the widgets where destroyed that lead to errors. --- src/keybind.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/keybind.c b/src/keybind.c index b98e6d7..3cef457 100644 --- a/src/keybind.c +++ b/src/keybind.c @@ -273,12 +273,12 @@ static gboolean keypress_cb(WebKitWebView *webview, GdkEventKey *event) GSList *link = find(CLEAN_MODE(vb.state.mode), vb.state.modkey, state, keyval); if (link) { - Keybind *keybind = (Keybind*)link->data; - command_run(keybind->command, keybind->param); - vb.state.modkey = vb.state.count = 0; vb_update_statusbar(); + Keybind *keybind = (Keybind*)link->data; + command_run(keybind->command, keybind->param); + return true; } -- 2.20.1