diff options
| author | David Ross <daboross@daboross.net> | 2018-08-25 14:56:06 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-08-25 14:56:06 -0700 |
| commit | c059bbdfe6abeb2aa3c51dff69989201ea465727 (patch) | |
| tree | 1dc30cd906d8f1845e849fd091d80c0f3561da3a /src/_kak | |
| parent | Merge pull request #587 from fdw/master (diff) | |
| download | zsh-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/_kak | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -43,7 +43,7 @@ _kak_sessions() { session_ids=($(_call_program session_ids kak -l)) - _values "${session_ids[@]}" + _values 'kak sessions' "${session_ids[@]}" } _kak() { |
