summaryrefslogtreecommitdiff
path: root/Src/Zle
AgeCommit message (Collapse)AuthorFilesLines
2006-04-25this one got missedPeter Stephenson1-1/+1
2006-04-2522431: set WIDGET etc. more consistently when executing zle functionsPeter Stephenson3-10/+17
2006-04-2522427: zle <widget> -w sets the environment for <widget>Peter Stephenson1-2/+8
2006-04-23users/10172: new zle command read-commandPeter Stephenson2-0/+14
2006-04-0922408: support for multibyte characters in patternsPeter Stephenson1-18/+0
2006-03-25Fixed call to undefined function zwarnname() instead of zwarnnam().Wayne Davison1-1/+1
2006-03-2122638: MACHINES: IRIXPeter Stephenson1-1/+15
users/10047: zle widget -K keymap
2006-03-20thinko fixClint Adams1-1/+1
2006-03-2022371: use only alphanumerics and underscores as word characters with vi ↵Clint Adams2-13/+15
bindings.
2006-03-1722366: better handling for multibyte-character-containing words in vi widgets.Clint Adams1-12/+14
2006-03-09Fix some compiler warnings and ensure that zmod gets restoredWayne Davison1-7/+3
properly in bin_zle_call().
2006-03-07Changed some structures to avoid gcc's type-punned warnings.Wayne Davison10-54/+52
2006-03-0722328, modified: add -o option to compaddPeter Stephenson3-2/+6
add _list_files helper to handle new file-list style for _path_files
2006-02-20Optimized away a recently-added call to strlen().Wayne Davison1-1/+1
2006-02-19Made the realocation of the line buffer in add_match_data() use aWayne Davison1-8/+9
little more optimal size. Also tweaked the code just a little.
2006-02-18The code in add_match_data() that looks for invalid charactersWayne Davison1-25/+26
now properly parses the string as metafied.
2006-02-13Replaced a flawed look-behind algorithm for backslash detectionWayne Davison1-8/+8
with one that looks forward (avoiding an accidental quoting of a char after a "\\" sequence).
2006-02-13Made add_match_data() look for invalid multibyte chars in theWayne Davison1-4/+61
names and substitute $'\123' sequences for them.
2006-02-13Call makecommaspecial() when we notice we're completing insideWayne Davison1-0/+5
an open brace list.
2006-02-09Call ZS_memchr() instead of plain memchr() so that suffix-removalWayne Davison1-2/+2
works again.
2006-02-09Define ZS_memchr() as either wmemchr() or memchr().Wayne Davison1-0/+2
2006-01-2822169: hook function zle-keymap-select called when $KEYMAP changesPeter Stephenson1-1/+17
2006-01-13Got rid of unused-variable compiler warning when compiling aWayne Davison1-1/+1
non-multibyte zsh.
2006-01-13Got rid of some superfluous STOUC() calls (such as the ones I addedWayne Davison2-2/+2
for the arg of calls to nicechar(), which doesn't need this).
2006-01-12The new "eol" var was being set in singlerefresh(), but not accessed.Wayne Davison1-1/+1
2006-01-12- When mbrtowc() returns -2 when given all the remaining chars in aWayne Davison1-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 Davison1-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 aWayne Davison4-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-11Tweaked the code to handle mbrtowc() converting '\0' the same way asWayne Davison1-11/+20
the other callers do. Also, changed the variable name to 'cnt'.
2006-01-11The return value of mbrtowc() is a size_t (unsigned), so don'tWayne Davison1-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-11The return value of mbrtowc() is a size_t (unsigned), so don'tWayne Davison1-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-09Changed the name of the "ret" variable in mb_niceformat() to "cnt"Wayne Davison1-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-09A test for (size_t)-1 needed to check for (size_t)-2 too.Wayne Davison1-1/+1
2006-01-09The return value of mbrtowc() is a size_t (unsigned), so don'tWayne Davison1-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-09The return value of mbrtowc() is a size_t (unsigned), so don'tWayne Davison1-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-09The return value of mbrtowc() is a size_t (unsigned), so don'tWayne Davison1-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-09The return value of mbrtowc() is a size_t (unsigned), so don'tWayne Davison1-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-0622124: handle bad multibyte input betterPeter Stephenson2-3/+13
2005-12-12A slightly more optimal way to fix the zle_setline() bug usingWayne Davison1-2/+1
the same zlecs-checking idiom as setline().
2005-12-12Fixed problem in zle_setline() where moving to an empty line wouldWayne Davison1-1/+1
set zlecs to -1. (Reported by Jun T.)
2005-12-1022069: completion listings didn't get unmetafiedPeter Stephenson1-7/+9
2005-11-30Fixed parsedigit() to have it use its arg instead of "lastchar".Wayne Davison1-15/+12
2005-11-2422014: argument-base, insert-unicode-charPeter Stephenson4-16/+75
2005-11-2122009: another double-width character fixPeter Stephenson1-0/+6
2005-11-18Got rid of two unneeded "(char *)" casts.Wayne Davison1-2/+2
2005-11-15Got rid of some compiler warnings about comparisons between signedWayne Davison1-5/+6
and unsigned variables.
2005-11-15Changed zlelineasstring() and zlegetline() to each return a normal charWayne Davison1-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-15Changed zlemetaline into a normal char pointer, not unsigned char.Wayne Davison1-39/+35
Got rid of some unsigned-char/char pointer casts.
2005-11-15Changed zleread() to return a normal char pointer, not unsigned char.Wayne Davison1-8/+7
Got rid of some unsigned-char/char pointer casts.
2005-11-15The non-multibyte version of ZWS() doesn't need to force a cast anymore.Wayne Davison1-2/+2