zsh-autosuggestions icon indicating copy to clipboard operation
zsh-autosuggestions copied to clipboard

zle: not enough argument for -C

Open avidseeker opened this issue 6 months ago • 0 comments

~/.zshrc:

. ~/.local/share/zsh/plugged/zsh-autosuggestions/zsh-autosuggestions.zsh

IFS=$'\n'

autoload -Uz compinit; compinit

results in

(eval):zle:1: not enough arguments for -C
_main_complete:compset:94: can only be called from completion function
_setup:37: compstate: assignment to invalid subscript range
(eval):zle:1: not enough arguments for -C
_main_complete:compset:94: can only be called from completion function
_setup:37: compstate: assignment to invalid subscript range
(eval):zle:1: not enough arguments for -C
_main_complete:compset:94: can only be called from completion function
_setup:37: compstate: assignment to invalid subscript range
(eval):zle:1: not enough arguments for -C
_main_complete:compset:94: can only be called from completion function
_setup:37: compstate: assignment to invalid subscript range
(eval):zle:1: not enough arguments for -C
_main_complete:compset:94: can only be called from completion function
_setup:37: compstate: assignment to invalid subscript range
(eval):zle:1: not enough arguments for -C
_main_complete:compset:94: can only be called from completion function
_setup:37: compstate: assignment to invalid subscript range
(eval):zle:1: not enough arguments for -C
_main_complete:compset:94: can only be called from completion function
_setup:37: compstate: assignment to invalid subscript range
(eval):zle:1: not enough arguments for -C
_main_complete:compset:94: can only be called from completion function
_setup:37: compstate: assignment to invalid subscript range

Uncomment any of the three lines in ~/.zshrc and the problem is gone.

$ZSH_VERSION is 5.9

Original discussion: https://github.com/gokcehan/lf/discussions/1947

compinit: https://www.zsh.org/mla/workers/2025/msg00161.html

avidseeker avatar Apr 08 '25 23:04 avidseeker