alacritty: zsh autocompletion is malformed
macOS 10.14.3alacritty 0.3.3- shell: oh-my-zsh:
zsh 5.3 (x86_64-apple-darwin18.0
Expected
when I type cd and then press tab I expect the shell suggestions to be displayed clearly
How it is
before pressing tab:
after:
or:
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 1
- Comments: 17 (11 by maintainers)
Commits related to this issue
- set env variable, LC_CTYPE=UTF-8, fixes #2939 — committed to debris/alacritty by debris 5 years ago
fwiw you should set it in alacritty env section and not in shell.
Nobody asked yet but could you please share both your left and right prompts?
zshhave to compute how much cells are the characters take, so it’s maybe (probably) just a simple counting issue that can be easily solved by fixing your prompt. (For example:zshguesses that one of your fancy Unicode characters take up two cells but in realityAlacrittyjust need one cell to draw; and whenzshrefreshes, it moves cursor to wrong column.)ZLE_RPROMPT_INDENT=1(default).Did you alter the
shellconfig variable @debris? Please make sure to always spawn login shells.I am experiencing this issue as well, but it only occurs when the zsh
RPROMPTparameter is set.entire .zshrc contents
alacirtty command
alacritty --config-file /dev/nullresult
The same .zshrc is handled correctly in
urxvtandxtermalacritty 0.3.3zsh 5.7.1Edit: Tried to reproduce this on a proper Arch Linux install under wayland and X11 and was unable to. I am not certain that my issue is related to the parent bug or if it is something unique to my WSL setup.
Also please confirm that the default Alacritty config does not have this issue (
alacritty --config-file /dev/null).