Skip to content

editing-mode rewinds after input confirmation #693

Closed

Description

@ima1zumi

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>

Activity

  1. added
    bug
    on Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions