On Sun, Jun 20, 2021 at 07:51:03PM +0300, Teemu Leisti wrote: > Repeat-By: > 1. Open Bash, and command: abcdef > 2. Click Ctrl-R, and type: bcde > Expected behavior: The command "abcdef" is shown on the command line, > and "bcde" is highlighted. > Observed behavior: The command "abcdef" is shown on the command line, > and "cde" is highlighted.
I believe what you're seeing is the result of the cursor still being on the "a". The cursor in my terminal (urxvt) is simply a reverse-video filter, exactly the same as the "highlighting" that you're getting from the reverse-i-search. The two reverses cancel each other out. If I move the mouse pointer out of the terminal in question and into a different window, the textual cursor goes away, and I can see the reverse-video highlighting on all the selected characters, including the "a". Your results may differ, depending on the type of terminal emulator you're using, and the window manager and its focus paradigm (mine is fvwm, set to use focus follows mouse). You might need to click a different window to transfer focus away from the terminal in which you're doing the reverse-i-search.