From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: (qmail 9006 invoked from network); 5 Apr 2020 23:36:07 -0000 Received-SPF: pass (primenet.com.au: domain of zsh.org designates 203.24.36.2 as permitted sender) receiver=inbox.vuxu.org; client-ip=203.24.36.2 envelope-from= Received: from ns1.primenet.com.au (HELO primenet.com.au) (203.24.36.2) by inbox.vuxu.org with UTF8ESMTPZ; 5 Apr 2020 23:36:07 -0000 Received: (qmail 1535 invoked by alias); 5 Apr 2020 23:35:59 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: List-Unsubscribe: X-Seq: 24753 Received: (qmail 16316 invoked by uid 1010); 5 Apr 2020 23:35:59 -0000 X-Qmail-Scanner-Diagnostics: from 1.smtp.34sp.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.102.2/25772. spamassassin: 3.4.4. Clear:RC:0(46.183.9.64):SA:0(-1.9/5.0):. Processed in 1.966496 secs); 05 Apr 2020 23:35:59 -0000 X-Envelope-From: dave@tty1.uk X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: none (ns1.primenet.com.au: domain at tty1.uk does not designate permitted sender hosts) Date: Mon, 6 Apr 2020 00:35:11 +0100 From: Dave Woodfall To: zsh-users@zsh.org Subject: Re: Is it possible to limit the height or rows of menus? Message-ID: <20200405233511.GD9554@blackswan.r0t.uk> Mail-Followup-To: zsh-users@zsh.org References: <20200405143846.GC32510@blackswan.r0t.uk> <20200405150012.GD32510@blackswan.r0t.uk> <20200405221332.GC9554@blackswan.r0t.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20200405221332.GC9554@blackswan.r0t.uk> X-Authenticated-As: dave@unrealize.co.uk X-OriginalSMTPIP: 82.40.94.2 X-34spcom-MailScanner-Information: Please contact the ISP for more information X-34spcom-MailScanner-ID: 83F421480092.A2506 X-34spcom-MailScanner: Found to be clean X-34spcom-MailScanner-SpamCheck: not spam, SpamAssassin (score=-10, required 6.5, autolearn=disabled, X34SP_OVERRIDE -10.00) X-34spcom-MailScanner-From: dave@tty1.uk On 2020-04-05 23:13, Dave Woodfall put forth the proposition: > On 2020-04-05 11:28, > Bart Schaefer put forth the proposition: > > On Sun, Apr 5, 2020 at 8:01 AM Dave Woodfall wrote: > > > > > > LINES=15 zle complete-word > > > > > > It seems to work so far. > > > > This confuses ZLE a lot, as far as I can tell. Try for example typing > > ^L to clear the screen, then do your completion, but instead of > > accepting the result, back out of the menu and try to edit the command > > line. Resetting LINES afterwards fixes ^L and the printing of the selected word twice, but it doesn't stop the previous line from being eaten: _vi-tab() { local OLDLINES=$LINES LINES=15 zle complete-word local LINES=$OLDLINES } I'm not sure why it only works by setting a local LINES at the end, but it seems to be the only combination that works. -- Dave