Skip to content

Hightlighting text to copy into the Linux primary clipboard truncates or includes too many characters #36618

@jdoss

Description

@jdoss

Summary

When I drag highlight text in Zed to copy text into my Primary clipboard it cuts off text or adds too much text in the primary clipboard buffer.

Description

Steps to reproduce:

  1. Use Linux with Wayland (not sure if it happens on X11)
  2. Hightlight some text to copy it into the primary clipboard
  3. Observe the text selects more or less than what was highlighted in your Primary clipboard.

Expected Behavior:

The exact text that I highlight goes into the primary clipboard.

Actual Behavior:

I highlighted this line left to right drag:
Image

It cut off the highlighted texxt on the first try and on the second it grabbed too much:
Image

Double click clicking to highlight or using olde trusty highlight text and ctrl + c works as expected.

Maybe this is related to previous primary clipboard issues? #14362

Zed Version and System Specs

Zed: v0.199.10 (Zed)
OS: Linux Wayland fedora 42
Memory: 251.5 GiB
Architecture: x86_64
GPU: NVIDIA GeForce RTX 5090 || NVIDIA || 575.64.05

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:editorFeedback for code editing, formatting, editor iterations, etcfrequency:commonBugs that happen for at least a third of the users across all platforms and kinds of usageplatform:linuxhappens only on linux, not other OSpriority:P2Average run-of-the-mill bugsstaleLabel used by `stale` actionstate:needs reproNeeds reproduction steps and/or someone to reproduce

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions