Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2006-02-20 | Optimized away a recently-added call to strlen(). | Wayne Davison | 1 | -1/+1 | |
2006-02-19 | Made the realocation of the line buffer in add_match_data() use a | Wayne Davison | 1 | -8/+9 | |
little more optimal size. Also tweaked the code just a little. | |||||
2006-02-18 | The code in add_match_data() that looks for invalid characters | Wayne Davison | 1 | -25/+26 | |
now properly parses the string as metafied. | |||||
2006-02-13 | Replaced a flawed look-behind algorithm for backslash detection | Wayne Davison | 1 | -8/+8 | |
with one that looks forward (avoiding an accidental quoting of a char after a "\\" sequence). | |||||
2006-02-13 | Made add_match_data() look for invalid multibyte chars in the | Wayne Davison | 1 | -4/+61 | |
names and substitute $'\123' sequences for them. | |||||
2006-02-13 | Call makecommaspecial() when we notice we're completing inside | Wayne Davison | 1 | -0/+5 | |
an open brace list. | |||||
2006-02-09 | Call ZS_memchr() instead of plain memchr() so that suffix-removal | Wayne Davison | 1 | -2/+2 | |
works again. | |||||
2006-02-09 | Define ZS_memchr() as either wmemchr() or memchr(). | Wayne Davison | 1 | -0/+2 | |
2006-01-28 | 22169: hook function zle-keymap-select called when $KEYMAP changes | Peter Stephenson | 1 | -1/+17 | |
2006-01-13 | Got rid of unused-variable compiler warning when compiling a | Wayne Davison | 1 | -1/+1 | |
non-multibyte zsh. | |||||
2006-01-13 | Got rid of some superfluous STOUC() calls (such as the ones I added | Wayne Davison | 2 | -2/+2 | |
for the arg of calls to nicechar(), which doesn't need this). | |||||
2006-01-12 | The new "eol" var was being set in singlerefresh(), but not accessed. | Wayne Davison | 1 | -1/+1 | |
2006-01-12 | - When mbrtowc() returns -2 when given all the remaining chars in a | Wayne Davison | 1 | -21/+30 | |
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 | - Use "mbs" for the multi-byte state variable name (for consistency). | Wayne Davison | 1 | -5/+5 | |
- Use the new MB_INVALID and MB_INCOMPLETE defines for the size_t -1 and -2 values (respectively). | |||||
2006-01-12 | - When mbrtowc() returns -2 when given all the remaining chars in a | Wayne Davison | 4 | -31/+42 | |
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-11 | Tweaked the code to handle mbrtowc() converting '\0' the same way as | Wayne Davison | 1 | -11/+20 | |
the other callers do. Also, changed the variable name to 'cnt'. | |||||
2006-01-11 | The return value of mbrtowc() is a size_t (unsigned), so don't | Wayne Davison | 1 | -5/+7 | |
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. | |||||
2006-01-11 | The return value of mbrtowc() is a size_t (unsigned), so don't | Wayne Davison | 1 | -3/+6 | |
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. | |||||
2006-01-09 | Changed the name of the "ret" variable in mb_niceformat() to "cnt" | Wayne Davison | 1 | -8/+7 | |
because "ret" is usually used for a variable name to hold the return value of the function. Also, changed the test when checking for a \0 to only check if "cnt" is 0, since we must always change a value of 0 to 1. | |||||
2006-01-09 | A test for (size_t)-1 needed to check for (size_t)-2 too. | Wayne Davison | 1 | -1/+1 | |
2006-01-09 | The return value of mbrtowc() is a size_t (unsigned), so don't | Wayne Davison | 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). | |||||
2006-01-09 | The return value of mbrtowc() is a size_t (unsigned), so don't | Wayne Davison | 1 | -15/+10 | |
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, we needed to use STOUC() on a char value passed to nicechar(), and we need to clear the mbstate_t object if mbrtowc() returns an error. | |||||
2006-01-09 | The return value of mbrtowc() is a size_t (unsigned), so don't | Wayne Davison | 1 | -4/+4 | |
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, we needed to use STOUC() on a char value passed to nicechar(). | |||||
2006-01-09 | The return value of mbrtowc() is a size_t (unsigned), so don't | Wayne Davison | 1 | -3/+3 | |
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. | |||||
2006-01-06 | 22124: handle bad multibyte input better | Peter Stephenson | 2 | -3/+13 | |
2005-12-12 | A slightly more optimal way to fix the zle_setline() bug using | Wayne Davison | 1 | -2/+1 | |
the same zlecs-checking idiom as setline(). | |||||
2005-12-12 | Fixed problem in zle_setline() where moving to an empty line would | Wayne Davison | 1 | -1/+1 | |
set zlecs to -1. (Reported by Jun T.) | |||||
2005-12-10 | 22069: completion listings didn't get unmetafied | Peter Stephenson | 1 | -7/+9 | |
2005-11-30 | Fixed parsedigit() to have it use its arg instead of "lastchar". | Wayne Davison | 1 | -15/+12 | |
2005-11-24 | 22014: argument-base, insert-unicode-char | Peter Stephenson | 4 | -16/+75 | |
2005-11-21 | 22009: another double-width character fix | Peter Stephenson | 1 | -0/+6 | |
2005-11-18 | Got rid of two unneeded "(char *)" casts. | Wayne Davison | 1 | -2/+2 | |
2005-11-15 | Got rid of some compiler warnings about comparisons between signed | Wayne Davison | 1 | -5/+6 | |
and unsigned variables. | |||||
2005-11-15 | Changed zlelineasstring() and zlegetline() to each return a normal char | Wayne Davison | 1 | -29/+25 | |
pointer, not an unsigned char pointer. Changed stringaszleline() to take a normal char pointer for its first arg. Got rid of some unsigned-char/char pointer casts. | |||||
2005-11-15 | Changed zlemetaline into a normal char pointer, not unsigned char. | Wayne Davison | 1 | -39/+35 | |
Got rid of some unsigned-char/char pointer casts. | |||||
2005-11-15 | Changed zleread() to return a normal char pointer, not unsigned char. | Wayne Davison | 1 | -8/+7 | |
Got rid of some unsigned-char/char pointer casts. | |||||
2005-11-15 | The non-multibyte version of ZWS() doesn't need to force a cast anymore. | Wayne Davison | 1 | -2/+2 | |
2005-11-15 | Got rid of some unsigned-char/char pointer casts. | Wayne Davison | 8 | -108/+83 | |
2005-11-07 | users/9638: tweaks for FCEDIT etc. | Peter Stephenson | 4 | -55/+202 | |
21986: rewrite completion suffixes for wide characters | |||||
2005-11-02 | users/9610: handle digit argument when copying words | Peter Stephenson | 1 | -11/+29 | |
2005-11-02 | 21973: typo caused digitargument() not to work | Peter Stephenson | 1 | -2/+2 | |
2005-11-01 | 21971: multibyte version of pfxlen() | Peter Stephenson | 2 | -3/+43 | |
2005-11-01 | I just noticed that zsh's default icntrl() macro returns true for | Wayne Davison | 1 | -3/+3 | |
chars 128 - 159, so the "... ? ZWC('?') : (CHAR_VALUE | ZWC('@'))" code needed to be updated to reflect this. | |||||
2005-11-01 | - One minor change to handle the ZLE_STRING_T change. | Wayne Davison | 1 | -13/+5 | |
- A few brace-position twiddles. | |||||
2005-11-01 | - Changed a couple pointers from "char *" to "unsigned char *" in | Wayne Davison | 1 | -19/+16 | |
order to match the zlemetaline's type. - A few brace-position twiddles. | |||||
2005-11-01 | - Improved all the "... ? ZWC('?') : (CHAR_VALUE | ZWC('@'))" code | Wayne Davison | 1 | -13/+5 | |
lines to work in both normal and multibyte mode without needing conditional code. - A couple brace-position twiddles. | |||||
2005-11-01 | - A few changes in light of the new ZLE_CHAR_T and ZLE_STRING_T. | Wayne Davison | 1 | -20/+11 | |
- Use idigit() in place of some former '0' - '9' range checks. - Simplified some multibyte conditional code by using ZC_icntrl() and LASTFULLCHAR. | |||||
2005-11-01 | Changed the non-wide version of: ZLE_CHAR_T into a "char" (formerly | Wayne Davison | 1 | -4/+4 | |
an "int"), and ZLE_STRING_T into a "char *" (formerly an "unsigned char *"). | |||||
2005-11-01 | - Changed a bunch of iblank() calls on zleline to use ZC_iblank(). | Wayne Davison | 1 | -16/+16 | |
- Changed one isalpha() call on zleline to use the new ZC_ialpha(). | |||||
2005-11-01 | - In vireplacechars(), changed "ch" into a ZLE_INT_T. | Wayne Davison | 1 | -13/+10 | |
- Changed some islower()/isupper()/iblank() calls on zleline to use the new ZC_i<type> versions. |