mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-27 16:50:58 +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:
parent
4cff29774e
commit
55b7a07a7e
3 changed files with 10 additions and 2 deletions
|
|
@ -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>
|
2007-08-21 Clint Adams <clint@zsh.org>
|
||||||
|
|
||||||
* 23788: Doc/Zsh/mod_files.yo, Src/Modules/files.c: add -h option
|
* 23788: Doc/Zsh/mod_files.yo, Src/Modules/files.c: add -h option
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@
|
||||||
# The main widget function.
|
# The main widget function.
|
||||||
|
|
||||||
incremental-complete-word() {
|
incremental-complete-word() {
|
||||||
#emulate -L zsh
|
emulate -L zsh
|
||||||
unsetopt autolist menucomplete automenu # doesn't work well
|
unsetopt autolist menucomplete automenu # doesn't work well
|
||||||
|
|
||||||
local key lbuf="$LBUFFER" rbuf="$RBUFFER" pmpt pstr word
|
local key lbuf="$LBUFFER" rbuf="$RBUFFER" pmpt pstr word
|
||||||
|
|
|
||||||
|
|
@ -179,9 +179,9 @@ void
|
||||||
zwcputc(ZLE_INT_T c)
|
zwcputc(ZLE_INT_T c)
|
||||||
{
|
{
|
||||||
#ifdef MULTIBYTE_SUPPORT
|
#ifdef MULTIBYTE_SUPPORT
|
||||||
char mbtmp[MB_CUR_MAX + 1];
|
|
||||||
mbstate_t mbstate;
|
mbstate_t mbstate;
|
||||||
int i;
|
int i;
|
||||||
|
VARARR(char, mbtmp, MB_CUR_MAX + 1);
|
||||||
|
|
||||||
if (c == WEOF)
|
if (c == WEOF)
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue