Closed mrmeowski closed 1 year ago
I think we can actually take neovim out of the equation; the issue can be reproduced just with kitty + tmux. Here are the updated steps to reproduce:
kitty --config NONE
.printf "Test\t\t|\n'π' Test\t|\n'ππ»' Test\t|\n" > test.txt
.cat test.txt
.|
characters are aligned properly.tmux -f /dev/null new
.cat test.txt
.|
characters are misaligned.This is how test.txt
renders in:
kitty:
kitty + tmux:
Gnome Terminal:
Gnome Terminal + tmux:
@kovidgoyal, I know you discourage using terminal multiplexers, but maybe you have a clue about how to avoid this problem while still using tmux in kitty? Is there a configuration option to prevent kitty from combining code points for emojis and display the code points individually as Gnome Terminal does.
No there is no such configuration. kitty will display unicode codepoints as per the unicode standard. I am not going to add configuration options to work around bugs in tmux.
I am seeing this (extra space after complex emoji) without a terminal multiplexer:
printf 'Happy Pride \360\237\217\263\357\270\217\342\200\215\360\237\214\210!\n'
Reproduced using the static kitty 0.28.1 binary for Linux amd64.
Edit: Seemingly this is #6323 / #3810?
yes it is the same zwj issue
Description
Characters composed of multiple Unicode code points (e.g.,
ππ»
which is composed ofU+1F44D
andU+1F3FB
) do not render properly when running neovim inside tmux inside kitty.Steps to Reproduce
kitty --config NONE
.tmux -f /dev/null new
.printf "Test\n'π' Test\n'ππ»' Test\n" > test.txt
.nvim -u NONE -c 'set colorcolumn=80' test.txt
Screenshots
cat test.txt
inside of tmux:Environment Details
Additional Context
This seems similar to https://github.com/wez/wezterm/issues/3704.