From: Maxime Coste Date: Fri, 5 Jun 2020 03:00:52 +0000 (+1000) Subject: Fix crash in normal_focus_last_active X-Git-Url: https://git.owens.tech/rss.xml/rss.xml/git?a=commitdiff_plain;h=21126d29895b84f58cbf446d067b733e8cbae969;p=vimb.git Fix crash in normal_focus_last_active g_variant_get was missing a parameter for the string element of the variant tuple, pass NULL there as we dont care about that value. --- diff --git a/src/normal.c b/src/normal.c index fa4c7d6..eda7deb 100644 --- a/src/normal.c +++ b/src/normal.c @@ -450,7 +450,7 @@ static VbResult normal_focus_last_active(Client *c, const NormalCmdInfo *info) gboolean focused; variant = ext_proxy_eval_script_sync(c, "vimb_input_mode_element.focus();"); - g_variant_get(variant, "(bs)", &focused); + g_variant_get(variant, "(bs)", &focused, NULL); if (!focused) { ext_proxy_focus_input(c); }