Fix zsh kitty completion when the matching style includes anchor based matchers

Debian apparently adds these by default.
This commit is contained in:
Kovid Goyal
2021-11-28 11:02:03 +05:30
parent 0a5c73dee4
commit daefb926d9
2 changed files with 19 additions and 1 deletions

View File

@@ -139,7 +139,7 @@
_ksi_complete() {
local src
# Send all words up to the word the cursor is currently on
src=$(printf "%s\n" "${(@)words[1,$CURRENT]}" | kitty +complete zsh)
src=$(printf "%s\n" "${(@)words[1,$CURRENT]}" | kitty +complete zsh "_matcher=$_matcher")
if [[ $? == 0 ]]; then
eval ${src}
fi