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

editing-mode rewinds after input confirmation #693

Closed
ima1zumi opened this issue Apr 30, 2024 · 0 comments · Fixed by #694
Closed

editing-mode rewinds after input confirmation #693

ima1zumi opened this issue Apr 30, 2024 · 0 comments · Fixed by #694
Labels
bug Something isn't working

Comments

@ima1zumi
Copy link
Member

ima1zumi commented Apr 30, 2024

When set editing-mode vi is configured in .inputrc, switching to emacs mode using emacs-editing-mode causes the input line to revert to vi mode after it's committed.

Expected Behavior

The input line should remain in emacs mode even after committing.

Steps to Reproduce

Add the following to your .inputrc:

set editing-mode vi
"\C-e": emacs-editing-mode
# for debug
set show-mode-in-prompt on
set vi-cmd-mode-string (cmd)
set vi-ins-mode-string (ins)
  1. Run INPUTRC=.inputrc irb
(ins)irb(main):001>
  1. Press C-e (to change emacs mode)
@irb(main):001>
  1. Press Enter
(ins)irb(main):002>
@ima1zumi ima1zumi added the bug Something isn't working label Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

Successfully merging a pull request may close this issue.

1 participant