history-search-backward places cursor in the beginning of line when there's nothing to search
olegantonyan opened this issue · comments
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
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?