These commands should use current URI if they where called without any
parameter, but cause of the migration of the way how we parse the inputbox, we
got always a parameter or better right hand side.
#ifdef FEATURE_QUEUE
static gboolean ex_queue(const ExArg *arg)
{
- Arg a = {.s = arg->rhs->str};
+ Arg a = {0};
+
switch (arg->code) {
case EX_QPUSH:
a.i = COMMAND_QUEUE_PUSH;
return false;
}
+ /* if no argument is found in rhs, keep the uri in arg null to force
+ * command_queue() to use current URI */
+ if (arg->rhs->len) {
+ a.s = arg->rhs->str;
+ }
+
return command_queue(&a);
}
#endif