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

Completion fix



Try:

bolyai ~ % compctl -l '' foo
bolyai ~ % compctl -x 's[-]' -k (foo bar) -- bar
bolyai ~ % foo bar -<TAB>

You get no completion.

Here is the fix.

Zoltan

*** Src/zle_tricky.c	1996/03/05 01:44:31	1.24
--- Src/zle_tricky.c	1996/03/17 14:21:13
***************
*** 1834,1839 ****
--- 1834,1840 ----
  	    /* And probably put the command name given to the flag in the
  	       array. */
  	    clwpos++;
+ 	    clwnum++;
  	    incmd = 0;
  	    ops = clwords[ra - 1];
  	    clwords[ra - 1] = cmdstr = ret->subcmd;
***************
*** 1842,1848 ****
  	    cmdstr = clwords[ra];
  	    incmd = !clwpos;
  	    clwords += ra;
- 	    clwnum--;
  	}
  	*compadd = 0;
  	if (ccmain != &cc_dummy)
--- 1843,1848 ----




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