mirror of
https://github.com/zsh-users/zsh-autosuggestions.git
synced 2025-12-06 07:10:40 +01:00
When z-sy-h is enabled after autosuggestion widgets have already been
bound, partial accepting the last part of a suggestion will result in
that string being duplicated.
I was able to reproduce using the following versions of the two plugins:
- z-sy-h: dde84e1b25f059a298ce3189cddfd0778f998df3
- z-asug: ae315ded4d
and running the following commands interactively one after another:
```
zsh -df
% source path/to/zsh-autosuggestions.zsh
% source path/to/zsh-syntax-highlighting.zsh
% bindkey -e
% bindkey <alt-f> # shows 'bindkey -e-e'
```
The order of the `source` statements matters and the issue cannot be
reproduced if the two source statements are executed together on one
line.
The problem is very similar to this one:
https://github.com/zsh-users/zsh-autosuggestions/issues/126#issuecomment-217121315
See GitHub issue #483