[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: When searching in command history, highlighting is missing the first
From: |
Teemu Leisti |
Subject: |
Re: When searching in command history, highlighting is missing the first character |
Date: |
Mon, 21 Jun 2021 19:13:06 +0300 |
You're right; the cursor was a block when I saw the bug, but when I changed it
to I-beam, command search worked as expected. When using a block cursor, it's
shown as a highlight of the character under the cursor, and the highlighting of
the searched string seems to be reversing that.
So my bug report can be disregarded.
-- Teemu Leisti
On Mon, 21 Jun 2021 at 17:10, Chet Ramey <chet.ramey@case.edu> wrote:
>
> On 6/20/21 12:51 PM, Teemu Leisti wrote:
>
> > Bash Version: 5.1
> > Patch Level: 4
> > Release Status: release
> >
> > Description:
> > When using ctrl-R to search in the command history, Bash highlights
> > the searched string, but not its first character.
> >
> > 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 can't reproduce this. I think it depends on how your terminal emulator
> displays the cursor.
>
> --
> ``The lyf so short, the craft so long to lerne.'' - Chaucer
> ``Ars longa, vita brevis'' - Hippocrates
> Chet Ramey, UTech, CWRU chet@case.edu http://tiswww.cwru.edu/~chet/