mirror of
https://github.com/mawww/kakoune.git
synced 2024-11-11 01:37:41 +03:00
Merge remote-tracking branch 'krobelus/no-switches-after-ddash'
This commit is contained in:
commit
4361a7e120
@ -808,7 +808,8 @@ Completions CommandManager::complete(const Context& context,
|
||||
const bool has_switches = not command.param_desc.switches.empty();
|
||||
auto is_switch = [=](StringView s) { return has_switches and s.substr(0_byte, 1_byte) == "-"; };
|
||||
|
||||
if (is_switch(token.content))
|
||||
if (is_switch(token.content)
|
||||
and not contains(tokens | drop(1) | transform(&Token::content), "--"))
|
||||
{
|
||||
auto switches = Kakoune::complete(token.content.substr(1_byte), pos_in_token,
|
||||
concatenated(command.param_desc.switches
|
||||
|
Loading…
Reference in New Issue
Block a user