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

Re: About menu selection (again)



Bart Schaefer wrote:

> ...
> 
> } Ideally, this should really check, if any completion widgets are bound
> } to keys, shouldn't it?
> 
> That's not as obvious ... if no completion widgets are bound to keys, how
> would you get into docomplete() in the first place?

It gets called from the standard widgets even if they haven't been
overridden with user-defined (`zle -C') ones.

> } +/* != 0 if there are any defined completion widgets. */
> } +
> } +/**/
> } +int hascompwidgets;
> 
> Shouldn't that be `mod_export int hascompwidgets;' ?
> 
> } +    /* We the C-code's point of view, we can only use compctl as a default
> 
> "We the C-code"?  In order to form a more perfect unix?

Ahem.


Bye
  Sven

Index: Src/Zle/zle_tricky.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/Zle/zle_tricky.c,v
retrieving revision 1.40
diff -u -r1.40 zle_tricky.c
--- Src/Zle/zle_tricky.c	20 Aug 2002 12:28:13 -0000	1.40
+++ Src/Zle/zle_tricky.c	20 Aug 2002 15:15:33 -0000
@@ -562,7 +562,7 @@
     if (undoing)
 	setlastline();
 
-    /* We the C-code's point of view, we can only use compctl as a default
+    /* From the C-code's point of view, we can only use compctl as a default
      * type of completion. Load it if it hasn't been loaded already and
      * no completion widgets are defined. */
 

-- 
Sven Wischnowsky                          wischnow@xxxxxxxxx



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