Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Negative LISTMAX
- X-seq: zsh-users 27964
- From: Glenn Morris <rgm@xxxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Negative LISTMAX
- Date: Wed, 17 Aug 2022 18:31:09 -0700
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=stanford.edu; dmarc=pass action=none header.from=stanford.edu; dkim=pass header.d=stanford.edu; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Z2tUibuzs1+Z+L3WXfbZi9qTpxTO3HO9kqg2Mh9rubg=; b=kDh0I1l4w1KIMlsMEH+k8zK30wKyxTeRNC/tVKxjjl58KoTOTxqmNf901Anw8VC5MztGx+aUAJ0zOnSR6T+0kq4kDVEHczO63jeGdC08LDdi3N/OIiCa7ueAFn54nSJq/bjAGn7ZAmTFyajPgL7TODMcVuEbtTvEHavvDEWiM5rBb+YYPTpFPMjJJxbiCpggYtTb8Z6FYuhgDPbpPOMxAyE2HgId/NzG1xGsrfJlpOWLyRHF/jaqjUdAe4YwHDqf+E5cq2dzXxDIIMVBzHrfhgT0qxNvd9UT//+mcGHX6Q5XpZW0M6+XbJQII5ZGochgtdy2bHMs0FfvsDz7WAo2RQ==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FzRKAPYZZ2xNzXDj20Gnzsn9+R5rjoODZESZyj/5MsmPjgWA3e9jaHW9wQv8zwBU0WEO6Kvckkjg4awtVTIcBw4x4z/sf587UAOCij9dgR+nJNH8gAilw+E7JcSqgbf2UBIJ0mRvMTODrulRcimDBK4qkoP8veJ235Lx5i5lrVFDBQNICyeOUaYzCgua82CpjXoIdmTZIxncRNQrVT8OTxQQRQoTLkIVyErnLaIcL70Nn5rODGq5QtD7Dfp0d/6W6c+GIcJsXA8ZyS3Xxp2TR7x3727RHkBlsWgLt4zn/W+Qu8t0wa7sIiBWneJ+FZKzUn9pAYroIehoMC4tSoWwzg==
- Archived-at: <https://zsh.org/users/27964>
- List-id: <zsh-users.zsh.org>
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.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author