Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issue where partial accept duplicates last word #507

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Commits on Jan 30, 2020

  1. 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
    ericfreese committed Jan 30, 2020
    Configuration menu
    Copy the full SHA
    4ccfdb2 View commit details
    Browse the repository at this point in the history