Fix kak_sessions not sending _values enough arguments

Using zsh 5.4.2, I am occasionally running into an error "_values:compvalues:11: not enough arguments". When it doesn't occur, instead, one of the kakoune sessions does not appear as part of autocompletion.

This fixes both problems for me by providing a description as described in http://zsh.sourceforge.net/Doc/Release/Completion-System.html#Completion-System. "The first non-option argument is used as a string to print as a description before listing the values. "
This commit is contained in:
David Ross 2018-08-25 14:56:06 -07:00 committed by GitHub
parent df7e44c685
commit c059bbdfe6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@
_kak_sessions() { _kak_sessions() {
session_ids=($(_call_program session_ids kak -l)) session_ids=($(_call_program session_ids kak -l))
_values "${session_ids[@]}" _values 'kak sessions' "${session_ids[@]}"
} }
_kak() { _kak() {