zsh-vi-mode icon indicating copy to clipboard operation
zsh-vi-mode copied to clipboard

zsh-autosuggestions highlighting has error

Open Songggggr opened this issue 1 year ago • 6 comments

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

Songggggr avatar Dec 16 '23 14:12 Songggggr

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 avatar Jan 22 '24 18:01 tummetott

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.

tummetott avatar Jan 22 '24 18:01 tummetott

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

Songggggr avatar Jan 23 '24 03:01 Songggggr

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

jeffreytse avatar Jan 23 '24 03:01 jeffreytse

@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.

tummetott avatar Jan 23 '24 09:01 tummetott

@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

Songggggr avatar Jan 24 '24 03:01 Songggggr