zsh-autosuggestions: _zsh_autosuggest_modify:27: unrecognized modifier `0'

Hi, I got this error

_zsh_autosuggest_modify:27: unrecognized modifier `0’

when I type something in the command line after source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh

My linux is RedHat 5.3 zsh version is 5.0.7

I cannot update anything because i don’t have the permission…

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 16 (4 by maintainers)

Most upvoted comments

Just a quick fix, but change the string on this line: https://github.com/zsh-users/zsh-autosuggestions/blob/master/src/widgets.zsh#L66

The string should be: "${orig_postdisplay[0,1]}.added" instead of "${orig_postdisplay:0:$#added}"

I think it has to do with an older version of Bash that used different string modifiers.

GNU bash, version 4.1.2 zsh 4.3.10

I have zsh 5.7.1 (x86_64-apple-darwin15.6.0) and am getting this error.