Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

compctl patch (second attempt)



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

I think this patch got mangled when I sent it before.  I am therefore
resending it.  This patch removes the restriction against using the
compctl -P and -S options in xor'ed completions.  This change doesn't
seem to cause any problems.

 -zefram

      Index: Src/builtin.c
      ***************
      *** 1849,1859 ****
        		}
        		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

iQBVAgUBMBArUGWJ8JfKi+e9AQG7JAIAiOl9fAvC73cVpy541bjd3EOHdeIY6icR
PiXmTZ1QlggZvnsKyKTu0avL9AlvUCZiaUazsiHqWinAnpkwfkOnKw==
=5GcA
-----END PGP SIGNATURE-----



Messages sorted by: Reverse Date, Date, Thread, Author