Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix issue where partial accept duplicates last word
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: ae315de 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: #126 (comment) See GitHub issue #483
- Loading branch information