Skip to content
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

Inserting from history in Vim normal mode removes the last character #683

Open
apotenza92 opened this issue Jan 30, 2024 · 3 comments
Open
Labels
bug Something isn't working

Comments

@apotenza92
Copy link

Environment

% typeset -p1 VENDOR OSTYPE ZSH_PATCHLEVEL _autocomplete__funcfiletrace
typeset VENDOR=apple
typeset OSTYPE=darwin23.0
typeset ZSH_PATCHLEVEL=zsh-5.9-0-g73d3173
typeset -a _autocomplete__funcfiletrace=(
  /opt/homebrew/share/zsh-autocomplete/zsh-autocomplete.plugin.zsh:4
  /Users/user/.config/zsh/.zshrc:2
  zsh:0
)
% git -C ~autocomplete log --oneline -n1
cfac516ee (HEAD -> stable, tag: 4.2.6) Merge pull request #16538 from dduugg/TopLevelMethodDefinition

macOS Sonoma 14.3
iTerm

Steps to reproduce

Using Vim mode via bindkey -v in zsh.

In normal mode press 'k' to go 'up' into history.
Screenshot 2024-01-31 at 10 34 34 am

; is automatically added to end of line.
Press enter to insert item from history.
Goes back to normal mode, ; is highlighted but the last character of the command (l in this case) is bolded and is not actually inserted:
Screenshot 2024-01-31 at 10 35 06 am
If I press enter again immediately after this the l is not inserted in the command:
Screenshot 2024-01-31 at 10 36 28 am

Expectation

The ; at the end of line should not interfere with the other text inserted from history.

@apotenza92 apotenza92 added the bug Something isn't working label Jan 30, 2024
@pavelbrilliant
Copy link

I'm experiencing the same issue

@StraightOuttaCrompton
Copy link

Any ideas with regards to this @marlonrichert ?

Thank you for this awesome project 🙏

@karamanliev
Copy link

karamanliev commented Apr 28, 2024

I am experiencing this same problem. My zsh config is pretty simple with only zsh-completions, zsh-autosuggestion and fast-syntax-highlighting along with zsh-autocomplete. I don't use oh my zsh. OS is Linux, terminal is WezTerm.

Thanks for the plugin, I am still going to use it and switching back to emacs mode, because it's that good, but this issue makes it literally unusable in vi-mode.

vi-problem-cut.webm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants