Fix crash in normal_focus_last_active
authorMaxime Coste <mawww@kakoune.org>
Fri, 5 Jun 2020 03:00:52 +0000 (13:00 +1000)
committerMaxime Coste <mawww@kakoune.org>
Fri, 5 Jun 2020 03:00:52 +0000 (13:00 +1000)
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.

src/normal.c

index fa4c7d6..eda7deb 100644 (file)
@@ -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);
     }