Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
compinit error when IFS is \n
- X-seq: zsh-workers 53459
- From: "Avid Seeker" <avidseeker@xxxxxxxxxxx>
- To: <zsh-workers@xxxxxxx>
- Subject: compinit error when IFS is \n
- Date: Wed, 09 Apr 2025 00:07:33 +0000
- Archived-at: <https://zsh.org/workers/53459>
- List-id: <zsh-workers.zsh.org>
~/.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
...
```
Uncomment any of the three lines in ~/.zshrc and the problem is gone.
```
$ZSH_VERSION is 5.9
```
zsh-autosuggestions open issue: https://github.com/zsh-users/zsh-autosuggestions/issues/825
Original discussion: https://github.com/gokcehan/lf/discussions/1947
Messages sorted by:
Reverse Date,
Date,
Thread,
Author