zsh-workers
 help / color / mirror / code / Atom feed
* YACCP (yet another compctl patch)
@ 1995-07-19 21:01 Zefram
  0 siblings, 0 replies; only message in thread
From: Zefram @ 1995-07-19 21:01 UTC (permalink / raw)
  To: Z Shell workers mailing list

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

At the moment, compctl won't allow a prefix or suffix in an xor'ed
completion, but it will allow these in the effectively xor'ed parts of
an extended completion.  This patch simply removes this prohibition.
Tests don't reveal any problems with the use of this ability.

 -zefram

      Index: Src/builtin.c
      ***************
        		}
        		break;
        	    case 'P':
      - 		if (hx) {
      - 		    zerrnam(name, "no prefix allowed in xor'd (+) completion",
      - 			    NULL, 0);
      - 		    return 1;
      - 		}
        		if ((*argv)[1]) {
        		    cct.prefix = (*argv) + 1;
        		    *argv = "" - 1;
      --- 1849,1854 ----
      ***************
      *** 1866,1876 ****
        		}
        		break;
        	    case 'S':
      - 		if (hx) {
      - 		    zerrnam(name, "no suffix allowed in xor'd (+) completion",
      - 			    NULL, 0);
      - 		    return 1;
      - 		}
        		if ((*argv)[1]) {
        		    cct.suffix = (*argv) + 1;
        		    *argv = "" - 1;
      --- 1861,1866 ----

-----BEGIN PGP SIGNATURE-----
Version: 2.6.i

iQBVAgUBMA1ydWWJ8JfKi+e9AQHKfgH9EmdnFQI4i99CADm5yMGNBFTDdcRBgL1q
YrK6H+R8BLbCQ0e1q0RT01mQ7gvFI5ZlIobcf8XxhFN+b2snYMoJOA==
=M0dN
-----END PGP SIGNATURE-----


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

only message in thread, other threads:[~1995-07-19 21:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1995-07-19 21:01 YACCP (yet another compctl patch) 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).