Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Autocompletion doesn't work with kanji



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