expansion doesn't trigger syntax highlighting #158

Open
DanielFGray opened this Issue May 14, 2016 · 2 comments

2 participants

@DanielFGray

I use zsh-syntax-highlighting, and expanding a suggestion seems to 'break' syntax highlighting until another key is pressed.

@ericfreese
zsh-users member

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:

% zsh -f
%% source zsh-syntax-highlighting.zsh; source zsh-autosuggestions.zsh
%% echo hello
%% echo <expand suggestion>
@DanielFGray
DanielFGray commented May 28, 2016 edited

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 git pulled daily via cron on all machines.

In my zshrc with omz, I use plugins=( vi-mode zsh-syntax-highlighting zsh-autosuggestions ) swapping the order of those two doesn't make a difference.

Even without omz, and manually sourcing as per your example above, expanding doesn't trigger syntax highlighting of the expanded text..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment