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

Re: PATCH: rewrite of completion matching



2008/6/8 Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>:
> Peter Stephenson wrote:
>> This is the long-hoped-for rewrite of the completion matching code so as
>> to handle arbitary characters instead of just a set of 256 single-byte
>> characters.  However, this is only half the story:  I have not modified
>> it to use wide characters yet, so it won't work with multibyte character
>> sets.
>
> This hasn't appeared, so apparently the mailing list is stuck.  Just
> in case it's now unstuck with backed up retries:  I've now committed
> this.

This makes "man git<tab>" not crash,
% man gitzsh: symbol lookup error:
/usr/local/lib/zsh/4.3.6-dev-0/zsh/computil.so: undefined symbol:
pattern_match_equivalence


diff --git a/Src/Zle/compmatch.c b/Src/Zle/compmatch.c
index 93e0049..42bca78 100644
--- a/Src/Zle/compmatch.c
+++ b/Src/Zle/compmatch.c
@@ -1199,7 +1199,7 @@ pattern_match1(Cpattern p, int c, int *mtp)
  * Only makes sense if lp->tp == CPAT_EQUIV and the (unseen) word
  * pattern also has that type.
  */
-static int
+mod_export int
 pattern_match_equivalence(Cpattern lp, int wind, int wmtp, int wchr)
 {
     int lchr, lmtp;



-- 
Mikael Magnusson



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