aboutsummaryrefslogtreecommitdiffstats
path: root/src/_kak
diff options
context:
space:
mode:
authorDavid Ross <daboross@daboross.net>2018-08-25 14:56:06 -0700
committerGitHub <noreply@github.com>2018-08-25 14:56:06 -0700
commitc059bbdfe6abeb2aa3c51dff69989201ea465727 (patch)
tree1dc30cd906d8f1845e849fd091d80c0f3561da3a /src/_kak
parentMerge pull request #587 from fdw/master (diff)
downloadzsh-completions-c059bbdfe6abeb2aa3c51dff69989201ea465727.tar
zsh-completions-c059bbdfe6abeb2aa3c51dff69989201ea465727.tar.gz
zsh-completions-c059bbdfe6abeb2aa3c51dff69989201ea465727.tar.bz2
zsh-completions-c059bbdfe6abeb2aa3c51dff69989201ea465727.tar.lz
zsh-completions-c059bbdfe6abeb2aa3c51dff69989201ea465727.tar.xz
zsh-completions-c059bbdfe6abeb2aa3c51dff69989201ea465727.tar.zst
zsh-completions-c059bbdfe6abeb2aa3c51dff69989201ea465727.zip
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. "
Diffstat (limited to 'src/_kak')
-rw-r--r--src/_kak2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/_kak b/src/_kak
index 9fd2540..868c873 100644
--- a/src/_kak
+++ b/src/_kak
@@ -43,7 +43,7 @@
_kak_sessions() {
session_ids=($(_call_program session_ids kak -l))
- _values "${session_ids[@]}"
+ _values 'kak sessions' "${session_ids[@]}"
}
_kak() {