Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: even better history-search-{for,back}ward for 3.1.4
- X-seq: zsh-workers 4106
- From: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxx>
- To: Wayne Davison <wayne@xxxxxxxxx>
- Subject: Re: PATCH: even better history-search-{for,back}ward for 3.1.4
- Date: Fri, 12 Jun 1998 21:06:13 -0700
- Cc: zsh-workers@xxxxxxxxxxxxxxx
- In-reply-to: <199806100851.BAA05622@xxxxxxxxxxxxxxx>
- References: <199806100851.BAA05622@xxxxxxxxxxxxxxx>
} > I hope not ... the new code ought to search for "fc" (without the
} > space),
}
} No, the only time history-search-backward omits the space is if you
} start the search without a space on the line
That means that a line consisting of exactly one word, say "ls", does
not match a search for `a line beginning with the first word of "ls -l"'.
It also means that a line beginning with "ls " (tab) won't match.
I see that this has actually been a bug all along, and your patch is at
least better in that you can get rid of the space by cursor positioning;
but surely if metadiffer() can't handle `word boundary' as a token, then
it should get special-cased in the caller rather than using space as a
poor substitute ...
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
Messages sorted by:
Reverse Date,
Date,
Thread,
Author