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
Sven Wischnowsky
cd38cd40f7
matching bugs with patterns with two anchors (11634)
2000-05-29 12:42:59 +00:00
Sven Wischnowsky
fa50c70000
fix for clines in suffix (11496)
2000-05-22 12:14:37 +00:00
Sven Wischnowsky
05d3c175a5
add Felix' completion matching test; some fixes for bugs shown by it (11439)
2000-05-17 11:59:32 +00:00
Sven Wischnowsky
6d4bdb661d
fix for suffix-matching; better in-path completion in _path_files (11364)
2000-05-15 09:34:11 +00:00
Sven Wischnowsky
984bae21ba
fixes for completion matching (11346)
2000-05-12 11:52:30 +00:00
Sven Wischnowsky
029483745b
better cursor positioning in words with multiple ambiguous word parts (11248)
2000-05-08 09:29:22 +00:00
Sven Wischnowsky
5a3fe9220d
misplaced cursor with partial-word matching (11007)
2000-04-28 12:42:24 +00:00
Sven Wischnowsky
ddb16a1b2b
allow to anchor on gaps between strings in matching control specs (10926)
2000-04-26 06:54:26 +00:00
Sven Wischnowsky
9ecbacab6b
faster test for `*'-patterns in matching control; prefer direct character matches over match specs in recursive invocations of match_str() (10925)
2000-04-26 06:45:50 +00:00
Sven Wischnowsky
67fd3b73ca
fix for matching control; improve merging cline lists (10924)
2000-04-26 06:34:10 +00:00
Sven Wischnowsky
145e7ee76f
join_clines() tested the wrong variable (10798)
2000-04-18 07:07:30 +00:00
Sven Wischnowsky
8c474bbcd4
fix for partial word completion with empty parts and common suffix (10774)
2000-04-17 07:56:25 +00:00
Sven Wischnowsky
920c353740
cursor placed on wrong word part with ** match spec (10573)
2000-04-07 09:16:37 +00:00
Sven Wischnowsky
b5019ef4e5
Recognise new parts in partial word completion
2000-04-03 12:14:52 +00:00
Peter Stephenson
4852545255
Updated from list as far as 10376
2000-04-01 20:49:47 +00:00
Tanaka Akira
82e6f2438e
Initial revision
1999-11-01 09:37:26 +00:00