zsh-users / zsh-autosuggestions

Fish-like autosuggestions for zsh
MIT License
30.43k stars 1.85k forks source link

Tab results in 'bad math expression' error message #679

Open bbugyi200 opened 2 years ago

bbugyi200 commented 2 years ago

Describe the bug

The following error message is printed to STDERR anytime I press the TAB key:

_zsh_autosuggest_highlight_apply:3: bad math expression: operator expected at `POSTDISPLA...'

To Reproduce

Steps to reproduce the behavior:

  1. Open my zsh shell.
  2. Press TAB
  3. Watch error message print to console.

Expected behavior

No error message.

Desktop

kylechadha commented 1 year ago

Have this as well on OS X 13.2.1, but only with gcloud

ericfreese commented 1 year ago

This will need more specific reproduction instructions. Please try zsh -df and source the plugin manually and try to reproduce. If you cannot reproduce with that, please add components from your .zshrc file one at a time until you see which one is responsible for the error.