From: Glenn Morris <rgm@stanford.edu>
To: zsh-users@zsh.org
Subject: Negative LISTMAX
Date: Wed, 17 Aug 2022 18:31:09 -0700 [thread overview]
Message-ID: <87tu6a9w2q.fsf@xoc19.stanford.edu> (raw)
Hi,
The manual says about LISTMAX:
If the value is negative, the list will be shown if it spans at most
as many lines as given by the absolute value.
Ie if I set it to -30, it should show me lists up to 30 lines long
without prompting, and prompt for 31 lines and above.
But by experiment and by inspection:
https://github.com/zsh-users/zsh/blob/master/Src/Zle/compresult.c#L1924
(complistmax < 0 && listdat.nlines <= -complistmax)
it appears that when LISTMAX is negative, it shows the list so long as
it is *longer* than the absolute value.
That (hiding small lists and showing big ones) doesn't seem like a
useful behaviour? If it is intentional, then it is not consistent with
the doc.
Thanks.
reply other threads:[~2022-08-18 1:32 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=87tu6a9w2q.fsf@xoc19.stanford.edu \
--to=rgm@stanford.edu \
--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).