Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Autocompletion doesn't work with kanji
- X-seq: zsh-users 14689
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: Autocompletion doesn't work with kanji
- Date: Tue, 22 Dec 2009 14:32:30 -0800
- In-reply-to: <alpine.LNX.2.01.0912221451530.17951@xxxxxxxxxxx>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <4B30085F.2010505@xxxxxxxxxxxxxx> <alpine.LNX.2.01.0912220049480.25312@xxxxxxxxxxx> <091222013609.ZM4589@xxxxxxxxxxxxxxxxxxxxxx> <4B30D92C.6070502@xxxxxxxxxxxxxx> <091222082525.ZM5379@xxxxxxxxxxxxxxxxxxxxxx> <4B310188.6040506@xxxxxxxxxxxxxx> <alpine.LNX.2.01.0912221236100.17951@xxxxxxxxxxx> <4B3107AB.1050003@xxxxxxxxxxxxxx> <alpine.LNX.2.01.0912221451530.17951@xxxxxxxxxxx>
On Dec 22, 3:09pm, Benjamin R. Haskell wrote:
}
} For various SOMETHINGs:
}
} CURSOR=$CURSOR # doesn't break
} print -lr $CURSOR >&2 # does break
} _throwaway=$CURSOR # does break
<style class="spock">Fascinating.</style>
$CURSOR is implemented by zle_params.c:get_cursor, which calls
stringaszleline(zlemetaline, ...) which in turn eventually calls
unmetafy() on its first argument. This is probably messing up
something that depends on zlemetaline later.
Expanding a shell parameter should not be calling a function that has
a modify-in-place side-effect on the value of a C global variable.
(I have no idea why CURSOR=$CURSOR doesn't break unless it's just
silently failing because CURSOR is read-only during completion.)
This thread should move to zsh-workers for patch suggestions, etc.
--
Messages sorted by:
Reverse Date,
Date,
Thread,
Author