diff --git a/src/commands.cc b/src/commands.cc index c2721411..1b869b98 100644 --- a/src/commands.cc +++ b/src/commands.cc @@ -93,7 +93,8 @@ struct PerArgumentCommandCompleter : PerArgumentCommandCompl return m_completer(context, flags, arg, pos_in_token); } return PerArgumentCommandCompleter::operator()( - context, flags, params, token_to_complete-1, pos_in_token); + context, flags, params.subrange(1), + token_to_complete-1, pos_in_token); } Completer m_completer;