Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Text selection doesn't account for unicode grapheme clusters #4200

Closed
hhirtz opened this issue Nov 6, 2021 · 1 comment
Closed

Text selection doesn't account for unicode grapheme clusters #4200

hhirtz opened this issue Nov 6, 2021 · 1 comment
Labels

Comments

@hhirtz
Copy link

hhirtz commented Nov 6, 2021

Describe the bug
Selected text in kitty is shown with reverted colors. On grapheme clusters (e.g. emoji chains with ZWJ) the selection area seems to expand the width of codepoints taken individually, instead of using the width of the whole cluster.

To Reproduce
Steps to reproduce the behavior:

  1. echo -e '👨\u200d👩\u200d👧\u200d👧'
  2. Select output of echo with a double click for example
  3. See error

Screenshots
screen-20211106234741

Environment details

kitty 0.23.1 created by Kovid Goyal
Linux vroom 5.14.14-arch1-1 #1 SMP PREEMPT Wed, 20 Oct 2021 21:35:18 +0000 x86_64
Arch Linux \r (\l)
LSB_VERSION=1.4
DISTRIB_ID=Arch
DISTRIB_RELEASE=rolling
DISTRIB_DESCRIPTION="Arch Linux"
Running under:Wayland
Loaded config files:
  /home/hubert/.config/kitty/kitty.conf

Config options different from defaults:
font_family JetBrains Mono
font_size   13.0
Added shortcuts:
	shift+page_up KeyAction('scroll_page_up')
	shift+page_down KeyAction('scroll_page_down')
@kovidgoyal
Copy link
Owner

dupe of #3810

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants