zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: Mikael Magnusson <mikachu@gmail.com>
Cc: Zsh hackers list <zsh-workers@zsh.org>
Subject: Re: %! prompt code shows incorrect number
Date: Sun, 16 May 2021 22:05:34 -0700	[thread overview]
Message-ID: <CAH+w=7azOR7dnsFYVDAHq7kXjKi0AvuZZ1yS13MB-0Cgh3yFrA@mail.gmail.com> (raw)
In-Reply-To: <CAHYJk3R3jz8VJVTjOd-b3vpSeoBHJe3nc-PoLodnwWnnx_Jt0A@mail.gmail.com>

On Sun, May 16, 2021 at 9:49 PM Mikael Magnusson <mikachu@gmail.com> wrote:
>
> Perhaps we could import events as numbers that are unused instead of
> overriding the number we have told the user is going to be used for
> the command they run?

Then the events would be out of order, which sort of ruins the
"incremental" part.

I don't think there's any simple fix here.  Possibly reprint the
prompt at (approximately) preexec time to show the correct number?


  reply	other threads:[~2021-05-17  5:06 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-17  4:48 Mikael Magnusson
2021-05-17  5:05 ` Bart Schaefer [this message]
2021-05-21 18:58   ` Mikael Magnusson
2021-05-21 23:55     ` Bart Schaefer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAH+w=7azOR7dnsFYVDAHq7kXjKi0AvuZZ1yS13MB-0Cgh3yFrA@mail.gmail.com' \
    --to=schaefer@brasslantern.com \
    --cc=mikachu@gmail.com \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).