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

Autosuggest still completes on right arrow after incompatible paste #489

Closed
janosh opened this issue Dec 15, 2019 · 2 comments
Closed

Autosuggest still completes on right arrow after incompatible paste #489

janosh opened this issue Dec 15, 2019 · 2 comments

Comments

@janosh
Copy link

janosh commented Dec 15, 2019

Describe the bug

Autosuggest doesn't update after paste.

To Reproduce

Example: If I start typing brew install it suggests completing to brew install black. If I then paste flake8 and press the right arrow key, it still completes to brew install flake8black.

This does not occur if I comment out the line

source $ZSH/oh-my-zsh.sh

in my .zshrc.

Expected behavior

Nothing happening on right arrow after paste if the completion shown prior to pasting does not include the pasted text.

Desktop

  • OS + distribution: macOS 10.15.2
  • Zsh version: 5.7.1
  • Plugin version: 0.6.3
@janosh janosh added the bug label Dec 15, 2019
@ericfreese
Copy link
Member

This looks like a duplicate of #351.

@ericfreese ericfreese added duplicate and removed bug labels Dec 15, 2019
@janosh
Copy link
Author

janosh commented Dec 16, 2019

You're right! Somehow I missed that issue. Adding

ZSH_AUTOSUGGEST_CLEAR_WIDGETS+=(bracketed-paste)

to my .zshrc solved the issue. Just out of curiosity, is this still low priority? Because it might be an easy fix once you've researched the problem and arrived at #351 but getting there took me some time...

@janosh janosh closed this as completed Dec 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants