Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [BUG] insert-last-word gets stuck at comments
- X-seq: zsh-workers 49202
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Frederick Eaton <frederik@xxxxxxx>
- Cc: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: [BUG] insert-last-word gets stuck at comments
- Date: Tue, 27 Jul 2021 18:36:22 -0700
- Archived-at: <https://zsh.org/workers/49202>
- In-reply-to: <CAH+w=7YH6ycWWpKKgznByWc0oK9nVS+7rOFmPSgzeZiKzVpG9w@mail.gmail.com>
- List-id: <zsh-workers.zsh.org>
- References: <20210726070654.v33wzoiwpqibwlas@localhost> <CAH+w=7Yr-zEQ2SFSWV3TqRp4WkkGXC=LbReBMka88=bb2U7z1w@mail.gmail.com> <20210727055227.4aobyf75yyckctve@localhost> <CAH+w=7YH6ycWWpKKgznByWc0oK9nVS+7rOFmPSgzeZiKzVpG9w@mail.gmail.com>
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?
It's possible the current misdocumented behavior dates all the way
back to 849f4068de (workers/16767) in 2002 and nobody noticed. I
can't find anything else obvious.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author