mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-09-21 12:17:14 +00:00
handle bash splitting completion cmdline on equals
This commit is contained in:
parent
b04b483b3f
commit
24c2d27eea
4 changed files with 19 additions and 2 deletions
|
|
@ -153,9 +153,15 @@ func default_parse_args(cmd *Command, words []string, completions *Completions)
|
|||
}
|
||||
}
|
||||
if is_last_word {
|
||||
if completions.split_on_equals && word == "=" {
|
||||
word = ""
|
||||
}
|
||||
complete_word(word, completions, only_args_allowed, expecting_arg_for, arg_num)
|
||||
} else {
|
||||
if expecting_arg_for != nil {
|
||||
if completions.split_on_equals && word == "=" {
|
||||
continue
|
||||
}
|
||||
expecting_arg_for = nil
|
||||
continue
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue