alacritty: zsh autocompletion is malformed
macOS 10.14.3
alacritty 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?
zsh
have 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:zsh
guesses that one of your fancy Unicode characters take up two cells but in realityAlacritty
just need one cell to draw; and whenzsh
refreshes, it moves cursor to wrong column.)ZLE_RPROMPT_INDENT=1
(default).Did you alter the
shell
config variable @debris? Please make sure to always spawn login shells.I am experiencing this issue as well, but it only occurs when the zsh
RPROMPT
parameter is set.entire .zshrc contents
alacirtty command
alacritty --config-file /dev/null
result
The same .zshrc is handled correctly in
urxvt
andxterm
alacritty 0.3.3
zsh 5.7.1
Edit: 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
).