[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bug in history using ctl-r
From: |
Bob Proulx |
Subject: |
Re: Bug in history using ctl-r |
Date: |
Sat, 1 Oct 2005 10:41:03 -0600 |
User-agent: |
Mutt/1.5.9i |
Leonard Bradfield wrote:
> In user mode ($>):
> mount /cdrom
> ... (do some stuff)
> umount /cdrom
> ...
> ^r m
>
> Instead of finding "mount /cdrom" it finds "umount /cdrom" and
> leaves the cursor blinking on the "m" of cdrom.
> Hmmm.....
Your history contains both commands. One command is a substring of
the other command. The search command bound to control-r is not
anchored at the start of the line. Therefore it locates the substring
in other commands.
When using 'reverse-search-history' which is an incremental search
feature you should at the point that you have been placed at the later
command select control-r again and push to the next previous history
item. In this case it would be ^r m ^r and you would be located on
the desired history item.
Bob