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 02:36 Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> On Tue, Jul 27, 2021 at 1:19 PM Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> >
> > There's code in the insertlastword function that's (according to the
> > comment) supposed to stop us getting stuck, but apparently in the case
> > where the line is entirely empty that isn't working.  It may be
> > possible to fix it.
> 
> Hm.  It's not difficult to fix in that continuing to hit <ESC .> picks
> up where it left off, but it still beeps and inserts nothing.
> 
> 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.

pws




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