Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | 39310/0010: internals: match_str: Simplify expression. | Daniel Shahaf | 2016-09-16 | 1 | -5/+5 |
| | | | | | | | In the first hunk we actually know that ind==0 since sfx==0, but keep it identical to the last hunk. Also add a comment (unrelated). | ||||
* | 39310/0009: internals: match_str: Downscope local variable 't'. | Daniel Shahaf | 2016-09-16 | 1 | -2/+11 |
| | | | | | | | Remove needless initialization (it is written to again before it is ever read). Note there was another 't' variable at the end of the function that shadowed the int 't'. | ||||
* | 39310/0008: internals: match_str: Document several local variables. | Daniel Shahaf | 2016-09-16 | 1 | -2/+16 |
| | |||||
* | 39310/0007: internals: match_str: Rename and constify local variables 'oll', ↵ | Daniel Shahaf | 2016-09-16 | 1 | -2/+3 |
| | | | | 'olw'. | ||||
* | 39310/0006: internals: match_str: Downscope local variable 'bpc'. | Daniel Shahaf | 2016-09-16 | 1 | -3/+7 |
| | |||||
* | 39310/0005: internals: match_str: Constify some local variables. | Daniel Shahaf | 2016-09-16 | 1 | -6/+6 |
| | |||||
* | 39310/0004: internals: match_str: Document 'savl'. | Daniel Shahaf | 2016-09-16 | 1 | -1/+16 |
| | |||||
* | 39310/0003: internals: match_str: Document 'savw'. Avoid magic number. | Daniel Shahaf | 2016-09-16 | 1 | -3/+6 |
| | | | | All callees checked to ensure that they only check that parameter for nonzeroness. | ||||
* | 39310/0002: internals: match_str: Simplify by removing 'zoff'. | Daniel Shahaf | 2016-09-16 | 1 | -10/+10 |
| | | | | | | 'zoff' was only used within 'if (sfx)' blocks, in which case it was initialized to 'alen', so simply s/zoff/alen/g. 'alen' is not const but it first changes on line 794, after the last use of 'zoff'. | ||||
* | 39310/0001: internals: match_str: Document some local variables. See 39123. | Daniel Shahaf | 2016-09-16 | 1 | -2/+56 |
| | |||||
* | unposted: Followup to 36586: Change C99 comment syntax to the C89 syntax. | Daniel Shahaf | 2015-09-23 | 1 | -2/+2 |
| | |||||
* | 36586: fix completion match right anchor | Han Pingtian | 2015-09-22 | 1 | -2/+4 |
| | |||||
* | 36580: don't copy empty buffer in compmatch. | Peter Stephenson | 2015-09-21 | 1 | -2/+9 |
| | | | | Also check if length is non-zero when buffer is empty. | ||||
* | 33515: suppress parser error messages in comp_match() | Barton E. Schaefer | 2014-10-22 | 1 | -0/+3 |
| | |||||
* | 29165: use term.h globally if needed at all. | Peter Stephenson | 2011-05-09 | 1 | -3/+3 |
| | |||||
* | 26466: suffix in certain matcher modes mishandled pattern | Peter Stephenson | 2009-01-29 | 1 | -7/+10 |
| | |||||
* | 26061: fix clash between process subst and numeric glob | Peter Stephenson | 2008-11-18 | 1 | -2/+1 |
| | | | | 26062: additional compmatch change, missed from 26047 | ||||
* | 26047: convert lower levels of completion matching to use | Peter Stephenson | 2008-11-15 | 1 | -285/+355 |
| | | | | multibyte strings and wide characters | ||||
* | 25975: bad tests for pattern match when building up a completion line string | Peter Stephenson | 2008-10-30 | 1 | -3/+11 |
| | |||||
* | 25972: leaked and uninitialised memory found by valgrind | Peter Stephenson | 2008-10-30 | 1 | -0/+1 |
| | |||||
* | 25860: avoid possible NULL dereferencing in bld_parts. | Clint Adams | 2008-10-12 | 1 | -1/+2 |
| | |||||
* | 25638: remove unnecessary ternary expression in match_str. | Clint Adams | 2008-09-10 | 1 | -1/+1 |
| | |||||
* | 25612: remove dead code. | Clint Adams | 2008-09-05 | 1 | -5/+2 |
| | |||||
* | Mikael: 25146: export pattern_match_equivalence() | Peter Stephenson | 2008-06-10 | 1 | -1/+3 |
| | |||||
* | unposted: silence compiler in pattern_match_restrict() | Peter Stephenson | 2008-06-09 | 1 | -1/+1 |
| | |||||
* | 25138(? mailing list stuck): rewrite of completion matching. | Peter Stephenson | 2008-06-08 | 1 | -109/+626 |
| | | | | Will one day use multibyte/wide characters, doesn't yet. | ||||
* | 24406: use deep copy of Cline structure to avoid recursion problem | Peter Stephenson | 2008-01-18 | 1 | -2/+2 |
| | |||||
* | 24127: bug in matcher specs with left anchor and partial words | Peter Stephenson | 2007-11-28 | 1 | -15/+35 |
| | |||||
* | 23693: _match completion tried to match the quoted form of filenames | Peter Stephenson | 2007-07-23 | 1 | -2/+24 |
| | |||||
* | fix thinko in 22787 | Andrey Borzenkov | 2006-09-30 | 1 | -1/+2 |
| | |||||
* | 22787: fix calling convention of pattern_match | Andrey Borzenkov | 2006-09-29 | 1 | -62/+73 |
| | |||||
* | - When mbrtowc() returns -2 when given all the remaining chars in a | Wayne Davison | 2006-01-12 | 1 | -6/+6 |
| | | | | | | | | 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). | ||||
* | A test for (size_t)-1 needed to check for (size_t)-2 too. | Wayne Davison | 2006-01-09 | 1 | -1/+1 |
| | |||||
* | The return value of mbrtowc() is a size_t (unsigned), so don't | Wayne Davison | 2006-01-09 | 1 | -10/+9 |
| | | | | | | | | | | 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). | ||||
* | 21943, 21945: ZLE_UNICODE_SUPPORT -> MULTIBYTE_SUPPORT; | Peter Stephenson | 2005-10-28 | 1 | -2/+2 |
| | | | | use multibyte versions of nicechar wherever possible. | ||||
* | minor tidy-ups | Peter Stephenson | 2005-10-02 | 1 | -0/+84 |
| | |||||
* | 21402: Fix crash with case-insensitive matching. | Peter Stephenson | 2005-07-06 | 1 | -4/+16 |
| | |||||
* | 20002 -- fix for matching spec core dump | Felix Rosencrantz | 2004-06-04 | 1 | -1/+1 |
| | |||||
* | Another fix in sub_match() to avoid allowing a partial-meta match | Wayne Davison | 2004-02-10 | 1 | -4/+9 |
| | | | | to occur (this time in the backwards scan). | ||||
* | Optimized the check for a widowed Meta character. | Wayne Davison | 2004-02-09 | 1 | -5/+7 |
| | |||||
* | 19385: NULL dereference in add_match_part | Peter Stephenson | 2004-01-20 | 1 | -1/+1 |
| | |||||
* | 19336: Src/Zle/compmatch.c: Bug with metafied characters in length of | Peter Stephenson | 2004-01-05 | 1 | -1/+8 |
| | | | | completion prefix | ||||
* | Silence "might be used uninitialized" warning. | Wayne Davison | 2001-08-08 | 1 | -1/+1 |
| | |||||
* | (only the patch to compmatch.c from the mail); improve merging cline lists ↵ | Sven Wischnowsky | 2001-06-27 | 1 | -1/+5 |
| | | | | 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) | ||||
* | (13892) fixes for fpaths and completion matching | Sven Wischnowsky | 2001-04-03 | 1 | -2/+1 |
| | |||||
* | make `_arguments -S' still complete long options after `--<TAB>'; fix for ↵ pre-func-move | Sven Wischnowsky | 2001-04-02 | 1 | -1/+2 |
| | | | | cursor positioning with partial word match specs (13868) | ||||
* | another fix for completion matching, CLF_MISS in the wrong cline struct (13575) | Sven Wischnowsky | 2001-03-06 | 1 | -0/+6 |
| | |||||
* | fix for matching control, try harder to merge separately completed parts to ↵ | Sven Wischnowsky | 2001-03-05 | 1 | -2/+24 |
| | | | | avoid losing user-typed characters (13565) | ||||
* | fix for mergin two CLF_MID entries in cline lists (with two equal prefixes ↵ | Sven Wischnowsky | 2001-01-25 | 1 | -1/+1 |
| | | | | it thought there were characters missing) (13388) | ||||
* | two more fixes for completion matching and reporting interesting positions ↵ | Sven Wischnowsky | 2001-01-15 | 1 | -4/+4 |
| | | | | (13349) |