zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-workers@sunsite.dk
Subject: Re: Bug with the new prompt redraw code
Date: Sun, 11 Jul 2004 09:44:34 -0700 (PDT)	[thread overview]
Message-ID: <Pine.LNX.4.60.0407110930180.24945@toltec.zanshin.com> (raw)
In-Reply-To: <20040711130922.A1C4E865D@pwstephenson.fsnet.co.uk>

On Sun, 11 Jul 2004, Peter Stephenson wrote:

> > (1) zle-line-init runs before the prompt is displayed
> > (2) the prompt printing code has stashed a pointer to the value of 
> > $PS1, which ends up pointing at reclaimed memory
> 
> How about passing the address of the prompt variable (the internal one,
> i.e. prompt, rprompt, etc., not the parameter) to zle instead of the
> prompt itself?

That might do it, but it'd be a moderately extensive change, and it has to 
be done carefully, because some other callers of zleread() pass NULL for 
the rprompt and so on.

Also it doesn't address (1) but then maybe that doesn't matter.


  reply	other threads:[~2004-07-11 16:45 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-11  3:47 Bart Schaefer
2004-07-11 13:09 ` Peter Stephenson
2004-07-11 16:44   ` Bart Schaefer [this message]
2004-07-11 22:42     ` Peter Stephenson
2004-07-12 16:28       ` Bart Schaefer
2004-07-12 17:53         ` Peter Stephenson
2004-07-13  5:08           ` 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=Pine.LNX.4.60.0407110930180.24945@toltec.zanshin.com \
    --to=schaefer@brasslantern.com \
    --cc=zsh-workers@sunsite.dk \
    /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).