mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-08 22:28:24 +02:00
common prefix should not apply to basename
This commit is contained in:
@@ -254,6 +254,7 @@ def zsh_output_serializer(ans: Completions) -> str:
|
||||
if len(allm) > 1:
|
||||
common_prefix = os.path.commonprefix(allm)
|
||||
if common_prefix and '/' in common_prefix:
|
||||
common_prefix = os.path.dirname(common_prefix) + '/'
|
||||
cmd.extend(('-p', shlex.quote(common_prefix)))
|
||||
matches = MatchGroup({k[len(common_prefix):]: v for k, v in matches.items()})
|
||||
has_descriptions = any(matches.values())
|
||||
|
||||
Reference in New Issue
Block a user