mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-27 18:51:41 +02:00
Avoid double filter for completions in zsh
This commit is contained in:
@@ -38,7 +38,7 @@ def zsh_input_parser(data):
|
|||||||
def zsh_output_serializer(ans):
|
def zsh_output_serializer(ans):
|
||||||
lines = []
|
lines = []
|
||||||
for description, matches in ans.match_groups.items():
|
for description, matches in ans.match_groups.items():
|
||||||
output = ['compadd', '-J', shlex.quote(description), '-X', shlex.quote(description), '--']
|
output = ['compadd', '-U', '-J', shlex.quote(description), '-X', shlex.quote(description), '--']
|
||||||
for word, description in matches.items():
|
for word, description in matches.items():
|
||||||
output.append(shlex.quote(word))
|
output.append(shlex.quote(word))
|
||||||
lines.append(' '.join(output) + ';')
|
lines.append(' '.join(output) + ';')
|
||||||
|
|||||||
Reference in New Issue
Block a user