Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: [BUG] insert-last-word gets stuck at comments



> On 28 July 2021 at 16:40 Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> On Wed, Jul 28, 2021 at 2:07 AM Peter Stephenson
> <p.w.stephenson@xxxxxxxxxxxx> wrote:
> >
> > > I wonder if it would be preferable if it just skipped on to the next
> > > (that is, usually, the preceding) last word?
> >
> > That seems reasonable --- I can't think of circumstances where you'd want
> > no result, unless you've actually reached the last possibility.
> 
> Should that happen only in the default case, or even when one or more
> arguments are provided?
> 
> My inclination is to say that if a specific history event or word was
> requested, but isn't found, the op should just fail as it does now.

Seems OK --- as long as it doesn't get stuck when it shouldn't I don't
think the exact behaviour is that big a deal if there's some kind of
rationale.

pws




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