1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-26 04:30:27 +01:00

23791: use VARARR for MB_CUR_MAX

users/11791: remove mysterious comment around emulate -L zsh in
incremental-complete-word
This commit is contained in:
Peter Stephenson 2007-08-22 09:25:32 +00:00
parent 4cff29774e
commit 55b7a07a7e
3 changed files with 10 additions and 2 deletions

View file

@ -1,3 +1,11 @@
2007-08-22 Peter Stephenson <pws@csr.com>
* 23791: Src/Zle/zle_refresh.c: use VARARR for arrays with
MB_CUR_MAX.
* users/11791: Functions/Zle/incremental-complete-word:
missing "emulate -L zsh": was commented out, not sure why.
2007-08-21 Clint Adams <clint@zsh.org>
* 23788: Doc/Zsh/mod_files.yo, Src/Modules/files.c: add -h option

View file

@ -22,7 +22,7 @@
# The main widget function.
incremental-complete-word() {
#emulate -L zsh
emulate -L zsh
unsetopt autolist menucomplete automenu # doesn't work well
local key lbuf="$LBUFFER" rbuf="$RBUFFER" pmpt pstr word

View file

@ -179,9 +179,9 @@ void
zwcputc(ZLE_INT_T c)
{
#ifdef MULTIBYTE_SUPPORT
char mbtmp[MB_CUR_MAX + 1];
mbstate_t mbstate;
int i;
VARARR(char, mbtmp, MB_CUR_MAX + 1);
if (c == WEOF)
return;