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

zsh-autosuggestions highlighting has error #258

Open
Songggggr opened this issue Dec 16, 2023 · 6 comments
Open

zsh-autosuggestions highlighting has error #258

Songggggr opened this issue Dec 16, 2023 · 6 comments
Assignees
Labels
bug Something isn't working

Comments

@Songggggr
Copy link

If you delete with ctrl + u, it will reproduce
image
image

@tummetott
Copy link

tummetott commented Jan 22, 2024

same here. took me a while to find out that this is cause by this plugin. please fix

Note: it only happens for the first cmd when opening a new shell

@tummetott
Copy link

tummetott commented Jan 22, 2024

A workaround is to disable lazy loading by defining this variable before sourcing the pluing:

ZVM_INIT_MODE=sourcing

However, this can introduce other side effects, such as the need to source ZVM after oh-my-zsh for it to work.

@Songggggr
Copy link
Author

@tummetott It doesn't work, It can be repeated every time

@jeffreytse jeffreytse self-assigned this Jan 23, 2024
@jeffreytse jeffreytse added the bug Something isn't working label Jan 23, 2024
@jeffreytse
Copy link
Owner

@Songggggr I'd love to dig this issue. Could you please provide much more details as issue template? Thank you.

@tummetott
Copy link

@tummetott It doesn't work, It can be repeated every time

I mean the bug only exists when opening a new shell, typing something that has an autocompletion, canceling the line with C-u. Once you press ENTER for any cmd (can also be an empty cmd), then the bug is gone.

@Songggggr
Copy link
Author

Songggggr commented Jan 24, 2024

@tummetott It doesn't work, It can be repeated every time

I mean the bug only exists when opening a new shell, typing something that has an autocompletion, canceling the line with C-u. Once you press ENTER for any cmd (can also be an empty cmd), then the bug is gone.

Yes, press ENTER or reinput then the bug is gone. But repeated trigger autocomplete and Ctrl+u appearing again. @jeffreytse

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants