1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-15 02:11:07 +02:00
Commit graph

66 commits

Author SHA1 Message Date
Barton E. Schaefer
b6921a2b44 33515: suppress parser error messages in comp_match() 2014-10-22 20:21:10 -07:00
Peter Stephenson
d89361739a 29165: use term.h globally if needed at all. 2011-05-09 09:49:08 +00:00
Peter Stephenson
e92801a2c0 26466: suffix in certain matcher modes mishandled pattern 2009-01-29 11:08:04 +00:00
Peter Stephenson
14231691e1 26061: fix clash between process subst and numeric glob
26062: additional compmatch change, missed from 26047
2008-11-18 10:07:31 +00:00
Peter Stephenson
85c513894d 26047: convert lower levels of completion matching to use
multibyte strings and wide characters
2008-11-15 21:27:45 +00:00
Peter Stephenson
7ce5beb5be 25975: bad tests for pattern match when building up a completion line string 2008-10-30 22:04:03 +00:00
Peter Stephenson
b9500900b1 25972: leaked and uninitialised memory found by valgrind 2008-10-30 20:29:55 +00:00
Clint Adams
430e54ddc4 25860: avoid possible NULL dereferencing in bld_parts. 2008-10-12 19:28:10 +00:00
Clint Adams
96fc1bb149 25638: remove unnecessary ternary expression in match_str. 2008-09-10 18:33:32 +00:00
Clint Adams
29680850a0 25612: remove dead code. 2008-09-05 00:18:11 +00:00
Peter Stephenson
26ca3a4ec6 Mikael: 25146: export pattern_match_equivalence() 2008-06-10 19:12:57 +00:00
Peter Stephenson
deab7d6642 unposted: silence compiler in pattern_match_restrict() 2008-06-09 08:41:26 +00:00
Peter Stephenson
bb68ee8db7 25138(? mailing list stuck): rewrite of completion matching.
Will one day use multibyte/wide characters, doesn't yet.
2008-06-08 17:53:53 +00:00
Peter Stephenson
dae7a27fff 24406: use deep copy of Cline structure to avoid recursion problem 2008-01-18 16:41:36 +00:00
Peter Stephenson
9cfdf38906 24127: bug in matcher specs with left anchor and partial words 2007-11-28 21:14:14 +00:00
Peter Stephenson
4860917a49 23693: _match completion tried to match the quoted form of filenames 2007-07-23 13:24:44 +00:00
Andrey Borzenkov
21c1e9a346 fix thinko in 22787 2006-09-30 06:53:15 +00:00
Andrey Borzenkov
9f2bf1f0f2 22787: fix calling convention of pattern_match 2006-09-29 17:40:41 +00:00
Wayne Davison
542797377a - When mbrtowc() returns -2 when given all the remaining chars in a
string, set an end-of-line flag and avoid calling mbrtowc() again
  for any of the incomplete characters that remain in the string.
- Use "mbs" for the multi-byte state variable name (for consistency).
- Use the new MB_INVALID and MB_INCOMPLETE defines for the size_t
  -1 and -2 values (respectively).
2006-01-12 00:51:50 +00:00
Wayne Davison
90f7b1e173 A test for (size_t)-1 needed to check for (size_t)-2 too. 2006-01-09 17:39:44 +00:00
Wayne Davison
5750513c00 The return value of mbrtowc() is a size_t (unsigned), so don't
assign it to an int and then check if it's < 0, as that won't
work on a system where an int is larger than a size_t.  Also,
the code that handled partial multibyte characters (that were
assembled from multiple bytes of a metafied string) was not
advancing past all the assembled bytes, nor was it handling the
decoding of a '\0' char (it looks like it could have infinite
looped in that case).
2006-01-09 01:09:55 +00:00
Peter Stephenson
aea7715261 21943, 21945: ZLE_UNICODE_SUPPORT -> MULTIBYTE_SUPPORT;
use multibyte versions of nicechar wherever possible.
2005-10-28 17:34:33 +00:00
Peter Stephenson
dcc48ad81b minor tidy-ups 2005-10-02 19:13:44 +00:00
Peter Stephenson
75f853f2e3 21402: Fix crash with case-insensitive matching. 2005-07-06 10:01:19 +00:00
Felix Rosencrantz
ba2415ce67 20002 -- fix for matching spec core dump 2004-06-04 06:00:32 +00:00
Wayne Davison
ba827bb22b Another fix in sub_match() to avoid allowing a partial-meta match
to occur (this time in the backwards scan).
2004-02-10 02:30:14 +00:00
Wayne Davison
6fd883c737 Optimized the check for a widowed Meta character. 2004-02-09 05:49:52 +00:00
Peter Stephenson
0167f8d036 19385: NULL dereference in add_match_part 2004-01-20 10:55:24 +00:00
Peter Stephenson
66329cbe4c 19336: Src/Zle/compmatch.c: Bug with metafied characters in length of
completion prefix
2004-01-05 17:28:49 +00:00
Wayne Davison
21dba96cd6 Silence "might be used uninitialized" warning. 2001-08-08 07:41:01 +00:00
Sven Wischnowsky
51503a87a2 (only the patch to compmatch.c from the mail); improve merging cline lists coming from different IPREFIX/PREFIX combinations and such by avoiding to generate cline structs for empty parts after a match spec anchor cline struct (15123) 2001-06-27 13:18:38 +00:00
Sven Wischnowsky
6150ef8696 (13892) fixes for fpaths and completion matching 2001-04-03 11:25:11 +00:00
Sven Wischnowsky
c05a2d2093 make _arguments -S' still complete long options after --<TAB>'; fix for cursor positioning with partial word match specs (13868) 2001-04-02 09:05:47 +00:00
Sven Wischnowsky
c8f2e51007 another fix for completion matching, CLF_MISS in the wrong cline struct (13575) 2001-03-06 11:31:20 +00:00
Sven Wischnowsky
eb41692bc5 fix for matching control, try harder to merge separately completed parts to avoid losing user-typed characters (13565) 2001-03-05 10:48:10 +00:00
Sven Wischnowsky
193846af84 fix for mergin two CLF_MID entries in cline lists (with two equal prefixes it thought there were characters missing) (13388) 2001-01-25 15:16:27 +00:00
Sven Wischnowsky
4a39b5d9c5 two more fixes for completion matching and reporting interesting positions (13349) 2001-01-15 10:44:14 +00:00
Sven Wischnowsky
a11115ecee fix for 13339 (report each position only once) and fixlet for matching: a case where missing characters weren't remembered (13343) 2001-01-12 13:50:13 +00:00
Sven Wischnowsky
9af83c6c2a fix cursor positioning with partial-word match specs using `**' (13336) 2001-01-10 09:24:45 +00:00
Sven Wischnowsky
bb1fabf3ff two completion matching fixes; wrong (path) prefix matching (removed path components) and reverse order of sub-strings in match-strings (12995) 2000-10-13 08:44:57 +00:00
Sven Wischnowsky
bd4490b966 *** empty log message *** 2000-10-10 13:37:30 +00:00
Sven Wischnowsky
7bb0338a78 follow-up to 12930, make it first try exact character matches, but enable it to go back to try match specs if it fails after accepting such character matches (12941) 2000-10-10 08:36:32 +00:00
Sven Wischnowsky
3f63f13610 prefer exact character matches over match specs (so that nom' can match nomatch') (12930) 2000-10-09 12:50:20 +00:00
Sven Wischnowsky
e4c9131b83 a bit of security for a VARARR() (12314) 2000-07-19 14:04:57 +00:00
Sven Wischnowsky
083befef2b new match spec characters bBeE, match only word/line not both (11977) 2000-06-19 10:48:21 +00:00
Sven Wischnowsky
1416862b63 allow completion after `a{{b,c},'; fix for closing brace re-insertion when completing from both ends (CLF_MID) (11939) 2000-06-16 07:52:05 +00:00
Sven Wischnowsky
f04b4c74a7 more security in completion matching (11924) 2000-06-15 09:41:47 +00:00
Sven Wischnowsky
cedd1006e6 fixes for calling compfiles, for completing words with special characters; make compfiles optimisations work with globcomplete and simple match (sunsite isn't responding) 2000-06-13 09:05:35 +00:00
Sven Wischnowsky
a95d051826 more anchor matching fixes (11817) 2000-06-08 09:25:24 +00:00
Sven Wischnowsky
b0b33a41a1 try to get the tests for `strings long enough' right in anchor matching code (11796) 2000-06-07 13:25:32 +00:00