Skip to content

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

@olegantonyan

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions