zsh-workers
 help / color / mirror / code / Atom feed
From: Geoff Wing <gwing@primenet.com.au>
To: pws@ifh.de (Peter Stephenson)
Cc: zsh-workers@math.gatech.edu (zsh-workers)
Subject: Re: display bug with compctl -X
Date: Sat, 19 Oct 1996 02:45:45 +1000 (EST)	[thread overview]
Message-ID: <199610181645.CAA10759@coral.primenet.com.au> (raw)
In-Reply-To: <199610181412.QAA19051@hydra.ifh.de> from "Peter Stephenson" at Oct 18, 96 04:12:24 pm

Peter Stephenson wrote:
:The following is guaranteed repeatable on my system with 3.0.1-test3.
:The terminal is an xterm.
:% zsh -f
:% compctl -D -X 'Default completion' -f
:% setopt alwayslastprompt 
:% ls xxx^D                           # there's no such file
:Default completion              xx
:#                                 ^ cursor is here, one line too low.
:
:By the way, should alwayslastprompt be on by default?  There was some
:discussion about this years ago when Sven wrote it and I was rather
:surprised to find it wasn't when I tried the above.  It's not clear to
:me why it shouldn't be.

Well obviously the baseline shouldn't have it by default because I don't :-)

listmatches() is going through with no possible matches and is calculating
the number of lines to go up incorrectly.
This whole section of code could use some more comments in it.
Someone who knows this bit of code might want to check that this is the
best solution.

I've just looked at this patch, and the previous bit of code may or may not
also need a similar check - your terminal would need to be set to 3 or 4
columns (depending on other factors).  
Setting at under, say, ten columns still causes serious problems / core-dumps
in several bits of the code.



*** zle_tricky.c.orig	Sat Oct 19 01:32:41 1996
--- zle_tricky.c	Sat Oct 19 02:14:59 1996
***************
*** 3558,3564 ****
  		(!(haswhat & HAS_MISC) ? nfpl + nfsl : nlpl + nlsl))) / columns;
      } else {
  	colsz = (ct + fct - 1) / fct;
! 	up = colsz + nlnct - clearflag;
      }
  
      /* Print the explanation string, if any. */
--- 3558,3564 ----
  		(!(haswhat & HAS_MISC) ? nfpl + nfsl : nlpl + nlsl))) / columns;
      } else {
  	colsz = (ct + fct - 1) / fct;
! 	up = colsz + nlnct - clearflag + (ct == 0);
      }
  
      /* Print the explanation string, if any. */


-- 
Geoff Wing [gwing@primenet.com.au]   PrimeNet - Internet Consultancy
  Web: http://www.primenet.com.au/   Facsimile: +61-3-9819 3788


      reply	other threads:[~1996-10-18 16:53 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-10-18 14:12 Peter Stephenson
1996-10-18 16:45 ` Geoff Wing [this message]

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=199610181645.CAA10759@coral.primenet.com.au \
    --to=gwing@primenet.com.au \
    --cc=pws@ifh.de \
    --cc=zsh-workers@math.gatech.edu \
    /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).