gboolean command_complete(const Arg *arg)
{
+ /* mode will be set in completion_complete */
completion_complete(arg->i ? true : false);
- vb_set_mode(VB_MODE_COMMAND | VB_MODE_COMPLETE, false);
-
return true;
}
}
}
+ /* don't disturb other command sub modes - complate only if no sub mode
+ * is set before */
+ if (vb.state.mode != VB_MODE_COMMAND) {
+ return false;
+ }
+
/* create new completion */
#ifdef HAS_GTK3
vb.gui.compbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 0);
if (!comps.completions) {
return false;
}
+
+ vb_set_mode(VB_MODE_COMMAND | VB_MODE_COMPLETE, false);
+
show(back);
return true;