Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compgen -g command cause repeatable autosuggestions crash #786

Open
ETOgaosion opened this issue Apr 21, 2024 · 0 comments
Open

compgen -g command cause repeatable autosuggestions crash #786

ETOgaosion opened this issue Apr 21, 2024 · 0 comments
Labels

Comments

@ETOgaosion
Copy link

Describe the bug

compgen -g command cause repeatable autosuggestions crash, tested on multiple machines.

To Reproduce

Steps to reproduce the behavior:

  1. configure oh-my-zsh
  2. add zsh-autosuggestions to plugin(in .zshrc)
  3. type command compgen -g
sudo apt install zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
cd .oh-my-zsh/custom/plugin/ && git clone https://github.com/zsh-users/zsh-autosuggestions.git && cd ~
vim ~/.zshrc
# add add zsh-autosuggestions to plugin=()
compgen -g

Expected behavior

no extra display

Screenshots

➜  ~ compgen -g      
_tags:comptags:36: can only be called from completion function
_tags:comptry:55: can only be called from completion function
_tags:comptags:60: can only be called from completion function

➜  ~ 
_zsh_autosuggest_highlight_apply:3: bad math expression: operator expected at `POSTDISPLA...'
➜  ~ 
➜  ~ 
_zsh_autosuggest_highlight_apply:3: bad math expression: operator expected at `POSTDISPLA...'
➜  ~ 
➜  ~ e
_zsh_autosuggest_highlight_apply:3: bad math expression: operator expected at `POSTDISPLA...'
➜  ~ exit
_zsh_autosuggest_highlight_apply:3: bad math expression: operator expected at `POSTDISPLA...'
➜  ~ exit
_zsh_autosuggest_highlight_apply:3: bad math expression: operator expected at `POSTDISPLA...'
➜  ~ exit
_zsh_autosuggest_highlight_apply:3: bad math expression: operator expected at `POSTDISPLA...'
➜  ~ exit
_zsh_autosuggest_highlight_apply:3: bad math expression: operator expected at `POSTDISPLA...'

Desktop

  • OS + distribution: Ubuntu 20.04.6
  • Zsh version: 5.8
  • Plugin version: c3d4e57

Additional context

@ETOgaosion ETOgaosion added the bug label Apr 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant