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

Re: Autocompletion doesn't work with kanji



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