zsh-workers
 help / color / mirror / code / Atom feed
From: Derek Peschel <dpeschel@eskimo.com>
To: zsh-workers@sunsite.dk
Subject: BUG? - 4.0.2, current 4.1 - blank left prompt & blank line erases right prompt
Date: Thu, 31 Jan 2002 00:44:06 -0800	[thread overview]
Message-ID: <20020131004406.A5021@eskimo.eskimo.com> (raw)

I wrote "BUG?" instead of "BUG" because this behavior is kind of cute.
Probably it was unintended, however.  And the right thing to do (which
I am NOT volunteering for, since I don't think it's important) is to
add a bunch of options -- transient_prompt, transient_prompt_blank_line,
transient_rprompt_blank_line, etc.

The behavior affects the released 4.0.2, as well as today's daily 4.1
snapshot.  I haven't tested 4.0.4 (it seems not to compile on my system)
but undoubtedly it works the same way.

If the left prompt is empty and you enter a blank line (by simply hitting
return) then the right prompt will be erased.

This is strange in 4.0.2 since it has no transient_rprompt option,
so there's no other way of erasing the right prompt!  With the daily
snapshot the transient_rprompt option is ignored.

The logic for displaying the right prompt (in Src/Zle/zle_refresh.c)
checks trashedzle.  Perhaps the combination of the empty prompt and
empty line means that trashedzle is never set.  (I haven't actually
tested this theory.)  But in that case why does the right prompt get
displayed at all?

-- Derek


             reply	other threads:[~2002-01-31  8:44 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-01-31  8:44 Derek Peschel [this message]
2002-01-31 10:42 ` Zefram
2002-01-31 10:49   ` Zefram

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=20020131004406.A5021@eskimo.eskimo.com \
    --to=dpeschel@eskimo.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).