Skip to content

compgen -g command cause repeatable autosuggestions crash #786

Open
@ETOgaosion

Description

@ETOgaosion

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions