zsh-workers
 help / color / mirror / code / Atom feed
From: Zefram <A.Main@dcs.warwick.ac.uk>
To: zsh-workers@math.gatech.edu (Z Shell workers mailing list)
Subject: fix for completing to NULs
Date: Thu, 23 May 1996 15:52:48 +0100 (BST)	[thread overview]
Message-ID: <19843.199605231452@stone.dcs.warwick.ac.uk> (raw)

-----BEGIN PGP SIGNED MESSAGE-----

If completing to a string ending in NUL, the completion code thinks
that the space of the metafied NUL is a suffix, and so puts the
cursor in the wrong place.  This fixes it.

 -zefram

      Index: Src/zle_tricky.c
      *** zle_tricky.c	1996/05/23 12:31:34	1.18
      --- zle_tricky.c	1996/05/23 13:16:17
      ***************
      *** 3343,3349 ****
        	if (menuend > ll)
        	    menuend = ll;
        	if (menuend && ((((char)line[menuend - 1]) != singlec) ||
      ! 		(menuend > 1 && singlec == ' ' && line[menuend - 2] == '\\')))
        	    if (parampre && singlec == '/' && ((char)line[menuend]) == '/')
        		addedsuffix = 0;
        	    /* Now insert the slash or space if there is none already. */
      --- 3343,3350 ----
        	if (menuend > ll)
        	    menuend = ll;
        	if (menuend && ((((char)line[menuend - 1]) != singlec) ||
      ! 	    (menuend > 1 && singlec == ' ' &&
      ! 	      (line[menuend - 2] == '\\' || line[menuend - 2] == STOUC(Meta)))))
        	    if (parampre && singlec == '/' && ((char)line[menuend]) == '/')
        		addedsuffix = 0;
        	    /* Now insert the slash or space if there is none already. */

-----BEGIN PGP SIGNATURE-----
Version: 2.6.2

iQCVAwUBMaRnXXD/+HJTpU/hAQGEnwP/W2rlbWq36yZebaJNWZkEpRvLI45okJOO
FIDu0b2B0rlmqe+1cAr73sk0ZyVQq9YHDEhmkJuItffc0J0MD33rLshTyuUGy1TE
kEQYosHY8/X4M+Ya95Tc+2x9735fXVEjuSG5t1MHVzE6UzkfQAGKCzPnhuMjPXb4
dIuymbc/XPw=
=9+VI
-----END PGP SIGNATURE-----



             reply	other threads:[~1996-05-23 15:17 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-05-23 14:52 Zefram [this message]
1996-05-23 20:13 ` Zoltan Hidvegi

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=19843.199605231452@stone.dcs.warwick.ac.uk \
    --to=a.main@dcs.warwick.ac.uk \
    --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).