From: Frank Terbeck <ft@bewatermyfriend.org>
To: Peter Stephenson <p.w.stephenson@ntlworld.com>
Cc: Simon Friedberger <simon+zsh@a-oben.org>, zsh-users@zsh.org
Subject: Re: zle reset-prompt
Date: Sat, 31 Jul 2010 22:16:10 +0200 [thread overview]
Message-ID: <87tynfflv9.fsf@ft.bewatermyfriend.org> (raw)
In-Reply-To: <20100731203055.32fa31f2@pws-pc> (Peter Stephenson's message of "Sat, 31 Jul 2010 20:30:55 +0100")
Peter Stephenson wrote:
> On Sat, 31 Jul 2010 20:34:56 +0200
> Frank Terbeck <ft@bewatermyfriend.org> wrote:
>> I thought `reset-prompt' alone was enough, but it's not. Also, this only
>> happens, when `clear-screen' and `reset-prompt are used in a single
>> widget. If called separately, this doesn't happen either.
>
> Aha, thanks, that's exactly what I need to know to pin down at least one
> problem... It's actually fairly obvious from your description. We
> maintain a global status which we save and restore within functions such
> as zle widgets that aren't part of the main execution path, but we don't
> explicitly restore that global status when redrawing the prompt, so if
> we're already in a zle function and the local status has been changed we
> use that. So we need to maintain the global status specially for use in
> this case. However, we should still maintain the local status within the
> function since it needs to obey normal syntax rules, so we have to save
> and restore around the prompt redisplay, too.
>
> This should fix that problem, anyway. There's a pretty good chance this
> is Simon's, too.
Yes, this fixes it for me. Thanks.
Regards, Frank
prev parent reply other threads:[~2010-07-31 20:27 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-28 20:15 Simon Friedberger
2010-07-29 9:04 ` Peter Stephenson
2010-07-30 13:55 ` Simon Friedberger
2010-07-30 14:08 ` Simon Friedberger
2010-07-31 17:47 ` Peter Stephenson
2010-07-31 18:34 ` Frank Terbeck
2010-07-31 19:30 ` Peter Stephenson
2010-07-31 20:16 ` Frank Terbeck [this message]
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=87tynfflv9.fsf@ft.bewatermyfriend.org \
--to=ft@bewatermyfriend.org \
--cc=p.w.stephenson@ntlworld.com \
--cc=simon+zsh@a-oben.org \
--cc=zsh-users@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).