Skip to content

history-search-backward places cursor in the beginning of line when there's nothing to search #618

Closed

Description

@olegantonyan

Description

When using up arrow to search in history:

"\e[A": history-search-backward
"\e[B": history-search-forward

Reline places cursor in the beginning of line if you haven't typed anything to search for. Video: https://youtu.be/_qwt6poHyvM
Expected behavior: place cursor at the end when there's nothing to search i.e. ignore search function and just bring the history item. This is how readline works.

Looks like reline interprets empty input as empty substring to search in history.

Originally reported to Ruby https://bugs.ruby-lang.org/issues/20074 as 3.3 began using reline by default.

Terminal Emulator

Konsole, kitty, yakuake

Activity

  1. epistrephein commented on Jan 20, 2024

    @epistrephein

    For those used to readline behavior this is very annoying, since it's the exact opposite.
    Any chance this will be fixed? Or any pointers to try to tackle this?

  2. added
    bug
    on Jan 21, 2024
  3. added
    good first issue
    on Mar 30, 2024
  4. removed
    good first issue
    on Jun 1, 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