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



"Bart Schaefer" writes:
> 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:

% ech<M-p>

As opposed to these:

% ech <M-p>
% ech command<M-p>

These examples only search for the command "ech", as opposed to
the prefix "ech".

> [note] the !iblank(line[histpos]).

You missed the following increment of histpos if it is less than ll
(i.e., if we found a space).  This is identical to how 3.0.5 works.

..wayne..



Messages sorted by: Reverse Date, Date, Thread, Author