Skip to content

Commit

Permalink
Wrap printf tab with quotes
Browse files Browse the repository at this point in the history
Without this, slightly older versions of zsh fail to correctly parse the output of the __complete
command. Tested that with zsh 5.0.2 and zsh 5.8. Since this is just correctly quoting the output of
a command, it shouldn't cause any compatibility issues.
  • Loading branch information
Paul Chesnais committed Apr 13, 2022
1 parent 9d15fe6 commit 8c4af72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zsh_completions.go
Expand Up @@ -171,7 +171,7 @@ _%[1]s()
# We first need to escape any : as part of the completion itself.
comp=${comp//:/\\:}
local tab=$(printf '\t')
local tab="$(printf '\t')"
comp=${comp//$tab/:}
__%[1]s_debug "Adding completion: ${comp}"
Expand Down

0 comments on commit 8c4af72

Please sign in to comment.