about summary refs log tree commit diff
path: root/Src/Zle
Commit message (Collapse)AuthorAgeFilesLines
* Tweaked the code to handle mbrtowc() converting '\0' the same way asWayne Davison2006-01-111-11/+20
| | | | the other callers do. Also, changed the variable name to 'cnt'.
* The return value of mbrtowc() is a size_t (unsigned), so don'tWayne Davison2006-01-111-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.
* The return value of mbrtowc() is a size_t (unsigned), so don'tWayne Davison2006-01-111-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.
* Changed the name of the "ret" variable in mb_niceformat() to "cnt"Wayne Davison2006-01-091-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.
* A test for (size_t)-1 needed to check for (size_t)-2 too.Wayne Davison2006-01-091-1/+1
|
* The return value of mbrtowc() is a size_t (unsigned), so don'tWayne Davison2006-01-091-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).
* The return value of mbrtowc() is a size_t (unsigned), so don'tWayne Davison2006-01-091-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.
* The return value of mbrtowc() is a size_t (unsigned), so don'tWayne Davison2006-01-091-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().
* The return value of mbrtowc() is a size_t (unsigned), so don'tWayne Davison2006-01-091-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.
* 22124: handle bad multibyte input betterPeter Stephenson2006-01-062-3/+13
|
* A slightly more optimal way to fix the zle_setline() bug usingWayne Davison2005-12-121-2/+1
| | | | the same zlecs-checking idiom as setline().
* Fixed problem in zle_setline() where moving to an empty line wouldWayne Davison2005-12-121-1/+1
| | | | set zlecs to -1. (Reported by Jun T.)
* 22069: completion listings didn't get unmetafiedPeter Stephenson2005-12-101-7/+9
|
* Fixed parsedigit() to have it use its arg instead of "lastchar".Wayne Davison2005-11-301-15/+12
|
* 22014: argument-base, insert-unicode-charPeter Stephenson2005-11-244-16/+75
|
* 22009: another double-width character fixPeter Stephenson2005-11-211-0/+6
|
* Got rid of two unneeded "(char *)" casts.Wayne Davison2005-11-181-2/+2
|
* Got rid of some compiler warnings about comparisons between signedWayne Davison2005-11-151-5/+6
| | | | and unsigned variables.
* Changed zlelineasstring() and zlegetline() to each return a normal charWayne Davison2005-11-151-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.
* Changed zlemetaline into a normal char pointer, not unsigned char.Wayne Davison2005-11-151-39/+35
| | | | Got rid of some unsigned-char/char pointer casts.
* Changed zleread() to return a normal char pointer, not unsigned char.Wayne Davison2005-11-151-8/+7
| | | | Got rid of some unsigned-char/char pointer casts.
* The non-multibyte version of ZWS() doesn't need to force a cast anymore.Wayne Davison2005-11-151-2/+2
|
* Got rid of some unsigned-char/char pointer casts.Wayne Davison2005-11-158-108/+83
|
* users/9638: tweaks for FCEDIT etc.Peter Stephenson2005-11-074-55/+202
| | | | 21986: rewrite completion suffixes for wide characters
* users/9610: handle digit argument when copying wordsPeter Stephenson2005-11-021-11/+29
|
* 21973: typo caused digitargument() not to workPeter Stephenson2005-11-021-2/+2
|
* 21971: multibyte version of pfxlen()Peter Stephenson2005-11-012-3/+43
|
* I just noticed that zsh's default icntrl() macro returns true forWayne Davison2005-11-011-3/+3
| | | | | chars 128 - 159, so the "... ? ZWC('?') : (CHAR_VALUE | ZWC('@'))" code needed to be updated to reflect this.
* - One minor change to handle the ZLE_STRING_T change.Wayne Davison2005-11-011-13/+5
| | | | - A few brace-position twiddles.
* - Changed a couple pointers from "char *" to "unsigned char *" inWayne Davison2005-11-011-19/+16
| | | | | order to match the zlemetaline's type. - A few brace-position twiddles.
* - Improved all the "... ? ZWC('?') : (CHAR_VALUE | ZWC('@'))" codeWayne Davison2005-11-011-13/+5
| | | | | | lines to work in both normal and multibyte mode without needing conditional code. - A couple brace-position twiddles.
* - A few changes in light of the new ZLE_CHAR_T and ZLE_STRING_T.Wayne Davison2005-11-011-20/+11
| | | | | | - Use idigit() in place of some former '0' - '9' range checks. - Simplified some multibyte conditional code by using ZC_icntrl() and LASTFULLCHAR.
* Changed the non-wide version of: ZLE_CHAR_T into a "char" (formerlyWayne Davison2005-11-011-4/+4
| | | | | an "int"), and ZLE_STRING_T into a "char *" (formerly an "unsigned char *").
* - Changed a bunch of iblank() calls on zleline to use ZC_iblank().Wayne Davison2005-11-011-16/+16
| | | | - Changed one isalpha() call on zleline to use the new ZC_ialpha().
* - In vireplacechars(), changed "ch" into a ZLE_INT_T.Wayne Davison2005-11-011-13/+10
| | | | | - Changed some islower()/isupper()/iblank() calls on zleline to use the new ZC_i<type> versions.
* Changed iblank() calls on zleline to use ZC_iblank().Wayne Davison2005-11-011-1/+1
|
* - Defined some new ZC_i<type> macros, such as ZC_ilower, ZC_inblank,Wayne Davison2005-11-011-3/+13
| | | | | ZC_iupper, etc. - Fixed ZC_iblank to not return true when given a newline.
* Fixed a compiler warning about a signed/unsigned comparison.Wayne Davison2005-10-311-3/+5
|
* Fixed some compiler warnings about signed/unsigned comparisons.Wayne Davison2005-10-312-5/+5
|
* In parse_cadef(), the variable name oargs was re-defined in an innerWayne Davison2005-10-311-2/+2
| | | | context, so I changed the name of the outer variable to orig_args.
* Use idigit() instead of range-checking '0' - '9'.Wayne Davison2005-10-311-1/+1
|
* 21957: more wide-character refresh stuffPeter Stephenson2005-10-301-103/+119
|
* Got rid of a use of WEOF when MULTIBYTE_SUPPORT is not definedWayne Davison2005-10-281-2/+4
| | | | (which fixed a signed vs unsigned comparison compiler warning).
* unposted: bit I missed in 21945Peter Stephenson2005-10-281-1/+1
|
* 21943, 21945: ZLE_UNICODE_SUPPORT -> MULTIBYTE_SUPPORT;Peter Stephenson2005-10-2813-68/+64
| | | | use multibyte versions of nicechar wherever possible.
* 21942: another extra-wide character fixPeter Stephenson2005-10-281-5/+29
|
* 21939: new UNMETACHECK() was too ruthlessPeter Stephenson2005-10-261-2/+2
|
* 21936: bug deleting extra-wide characterPeter Stephenson2005-10-251-0/+6
|
* 21930: handle extra-wide characters at end of linePeter Stephenson2005-10-241-32/+38
|
* not yet posted; zle line screwed up on bad return from insertlastword()Peter Stephenson2005-10-232-2/+9
|