zsh-workers
 help / color / mirror / code / Atom feed
* quotename() fix
@ 1996-05-23 14:51 Zefram
  0 siblings, 0 replies; only message in thread
From: Zefram @ 1996-05-23 14:51 UTC (permalink / raw)
  To: Z Shell workers mailing list

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

Zoltan's patch in article 1098, reversing a hunk of my completion patch,
broke this:

% compctl -s foo^@bar baz
% baz _<TAB>
% baz foo| bar _

I had actually fixed this in the hunk that Zoltan reversed, but in
the wrong way, so that I broke completion on words containing tokens.
Here is the correct fix:

 Index: Src/zle_tricky.c
 *** zle_tricky.c	1996/05/23 11:40:56	1.17
 --- zle_tricky.c	1996/05/23 12:27:12
 ***************
 *** 1283,1289 ****
    * pointer it points to may point to aposition in s and in e the position *
    * of the corresponding character in the quoted string is returned.  Like *
    * e, te may point to a position in the string and pl is used to return   *
 !  * the position of the character pointed to by te in the quoted string.   */
   
   /**/
   char *
 --- 1283,1290 ----
    * pointer it points to may point to aposition in s and in e the position *
    * of the corresponding character in the quoted string is returned.  Like *
    * e, te may point to a position in the string and pl is used to return   *
 !  * the position of the character pointed to by te in the quoted string.   *
 !  * The string is metafied and may contain tokens.                         */
   
   /**/
   char *
 ***************
 *** 1319,1324 ****
 --- 1320,1327 ----
   		continue;
   	    } else
   		*v++ = '\\';
 + 	if(*u == Meta)
 + 	    *v++ = *u++;
   	*v++ = *u;
       }
       *v = '\0';

 -zefram

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

iQCVAwUBMaRaUHD/+HJTpU/hAQEicgP/SAztxmhGUQ8oSmdEiZ9VNXjUOslSSoAH
m35fd+5xX4MiMfR2NydXyQVz3eKEy9aF7k32aHiVT78GU39P2Lkvoq/8kakUwV6v
Dv+2iilrDn2GGYA66/z9rUIf49g/gQTAm/j7D9tYK/0lmvh4K7LXTWWH9xH7lpgB
qGUX13anynM=
=dhUG
-----END PGP SIGNATURE-----



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1996-05-23 15:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-05-23 14:51 quotename() fix Zefram

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).