Plugin breaks zsh vi mode insert #71

Closed
prurph opened this Issue Aug 30, 2015 · 2 comments

3 participants

@prurph

If vi mode is on (bindkey -v), the following happens:

  1. Type some text
  2. Hit escape to enter normal mode
  3. Navigate backwards on the line so your cursor is within that text
  4. Pressing a (append) or i (insert) will cause any text after the cursor to disappear because autosuggestions kicks in with that text after the cursor as the suggestion, and once you diverge from it by inserting text, it's gone.

Contrast this with using the arrow keys to move backwards without ever leaving insert mode and any typed text is inserted in the middle as expected.

@faceleg faceleg added the bug label Aug 30, 2015
@reinhrst

just for info: I'm using vi mode, and cannot reproduce your issue.

@prurph

I'm sorry--I investigated further and the issue is that I was doing something like this: http://superuser.com/questions/151803/how-do-i-customize-zshs-vim-mode/#answer-156204 and I think the call to zle reset-prompt inside zle-line-init was causing problems.

Sorry for the confusion and many thanks for investigating!

@prurph prurph closed this Sep 20, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment