-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
expansion doesn't trigger syntax highlighting #158
Comments
This is not expected behavior. Can you give some details about your setup (OS, zsh version, plugin version)? It would also be helpful if you could provide minimum steps to reproduce the problem. For example, I'm not seeing the issue with Mac OS X, zsh 5.2, z-asug v0.3.1, z-sy-h v0.4.1, and the following:
|
I'm using Ubuntu 16.04 and zsh 5.1.1 with oh-my-zsh. I also have another machine running Arch and zsh 5.2 + omz that does the same thing, both plugins are In my zshrc with omz, I use Even without omz, and manually sourcing as per your example above, expanding doesn't trigger syntax highlighting of the expanded text.. |
Same issue here. The expanded part is not being syntax-highlighted after accepting a suggestion with Adding another space after expansion triggers syntax-highlighting correctly but most of the times you just want to run the suggested command as next step which leaves half of the command non-highlighted. |
FWIW, while I haven’t tried to further identify the cause so far, I was able to work around this issue by calling |
@eigengrau Can you please paste the patch for others to use the workaround ? |
I didn’t patch the sources, only wrapped the widget in my .zshrc like this:
|
@eigengrau Thank you. it works. |
I use zsh-syntax-highlighting, and expanding a suggestion seems to 'break' syntax highlighting until another key is pressed.
The text was updated successfully, but these errors were encountered: