Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Autocompletion doesn't work with kanji
- X-seq: zsh-users 14686
- From: "Benjamin R. Haskell" <zsh@xxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: Autocompletion doesn't work with kanji
- Date: Tue, 22 Dec 2009 12:40:16 -0500 (EST)
- In-reply-to: <4B310188.6040506@xxxxxxxxxxxxxx>
- 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>
On Tue, 22 Dec 2009, Christoph Dittmann wrote:
> Bart Schaefer wrote:
> >
> > } I also noticed it only matters that $CURSOR is referenced there. I can
> > } change the line to:
> > } _last_try="$CURSOR"
> > } and the problem remains.
> >
> > Does it really matter if it's $CURSOR? Or is any assignment enough?
> > E.g., _last_try=constant
>
> Assigning a constant is not enough. Assigning only $HISTNO or $BUFFER
> also does not trigger the error. Only referencing $CURSOR seems to
> affect it.
How about replacing the _last_try line with:
print -lr ${CURSOR:q:q} >&2
It'll look ugly, but it's a quick check to see if something's amiss in
your $CURSOR variable.
e.g., for me:
$ asdf <TAB>
->
$ asdf 5
asdf <cursor ends up here>
Messages sorted by:
Reverse Date,
Date,
Thread,
Author