Zsh-autosuggestions: Breaks vi-delete function

Created on 2 Jan 2018  路  3Comments  路  Source: zsh-users/zsh-autosuggestions

Using rxvt-unicode (urxvt) v9.21, zsh 5.3.1 and zsh-autosuggestions v0.3.3:
Start a "clean" shell, go into vi mode, type something, press <Esc>, press d, press l, the last letter you type will be deleted. Now source zsh-autosuggestions, type something, do <Esc>dl, the last letter won't be deleted.
Something like this:

zsh -f
set -e vi
echo^[dl^C
source zsh-autosuggestions.zsh
echo^[dl
bug reproduced

Most helpful comment

Should be fixed now on develop. Will go out with the next release. Thanks @glacambre!

All 3 comments

I should add that it's dl that is specifically broken, every other vi-delete action (dd, dh...) works as expected.

I've added a failing spec for this to the fixes/vi-delete branch: https://github.com/zsh-users/zsh-autosuggestions/blob/fixes/vi-delete/spec/integrations/vi_mode_spec.rb#L67-L76

Should be fixed now on develop. Will go out with the next release. Thanks @glacambre!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

silverneko picture silverneko  路  5Comments

OmeGak picture OmeGak  路  3Comments

metalmac picture metalmac  路  4Comments

guitaristtom picture guitaristtom  路  6Comments

mindyourlifeguide picture mindyourlifeguide  路  6Comments