zsh-workers
 help / color / mirror / code / Atom feed
From: "Mikael Magnusson" <mikachu@gmail.com>
To: zsh-workers <zsh-workers@sunsite.dk>
Subject: list-prompt not aligned right
Date: Thu, 17 Apr 2008 03:08:32 +0200	[thread overview]
Message-ID: <237967ef0804161808m11b7d63fnf3523439268d3de2@mail.gmail.com> (raw)

I'm not sure which parts of this are needed to reproduce, so I'll be
as exact as I can, but it does happen under less specific
circumstances.

zsh -f
autoload compinit;compinit
zstyle ':completion:*' list-prompt %SAt %p: Hit TAB for more, or the
character to insert%s
zstyle ':completion:*:descriptions' format foo
touch aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa{1..40}
# i think the point is they need to be wider than the terminal
ls <tab><tab><tab>

After a couple presses, possible some specific height is also needed,
the shorter the better i think (my terminal right now is 98x24), one
of the "a"s will leak over to the line that has the "Hit TAB for more"
message:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aAt 58%: Hit TAB for more, or the character to insert

Normally i have this too
zstyle ':completion:*' list-colors ${(s.:.)${LS_COLORS}#ec=}
and when the leak happens in this case, the TAB message gets the color
of whatever file spilled over.
zstyle ':completion:*:descriptions' format ''
seems to make the problem go away.

I don't think this is a new problem, but I think in the past i've
ascribed it to wonkiness with multibyte/doublewidth characters, but it
happened now with only ascii so obviously that wasn't it.

-- 
Mikael Magnusson


                 reply	other threads:[~2008-04-17 12:45 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=237967ef0804161808m11b7d63fnf3523439268d3de2@mail.gmail.com \
    --to=mikachu@gmail.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).