zsh-autocomplete: zsh crashes with file completion

Environment

apple darwin21.0 /bin/zsh -zsh zsh-5.8.1-0-g1a490c7
/Users/okuramasafumi/.local/share/zinit/zinit.git/zinit.zsh:1643
/Users/okuramasafumi/.local/share/zinit/zinit.git/zinit.zsh:1281
/Users/okuramasafumi/.local/share/zinit/zinit.git/zinit.zsh:2759
/Users/okuramasafumi/.zshrc:52
  • Operating system: macOS 12.4
  • Terminal emulator: Build 3.5.0beta5

Steps to reproduce

I found it only happens in certain directory.

git clone https://github.com/okuramasafumi/xa
cd xa
nvim gemm<TAB>

Typing tab after gemm causes zsh crash. I suspect it’s because the repository contains Gemfile but other repositories with Gemfile doesn’t cause crashes.

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 22 (9 by maintainers)

Commits related to this issue

Most upvoted comments

@marlonrichert commented out line 168, 169 in .autocomplete.async, with zstyle ‘:autocomplete:*’ insert-unambiguous yes

seems to be okay.

Anything to help please do let me know.

with this commented out, seems to be okay now.

#zstyle ‘:autocomplete:*’ insert-unambiguous yes