8000 copy bug · Issue #102 · amirlehmam/wmux · GitHub
[go: up one dir, main page]

Skip to content

copy bug #102

Closed
Closed

Description

@arnonuem

within in the terminal when i select a block like this one

Image

and then do CTRL+C and paste that somewhere else - for example notepad++ to illustrate the problem

Image

it produces a lot of unneccessary whitespaces which destroys the formatting.

I guess a trim() is needed somewhere.

This is the part that is just too much and that i always have to cut manually for each line:

Image

very annoying :D

Activity

  1. amirlehmam commented on Jul 18, 2026

    @amirlehmam
    Owner

    Fixed in v0.27.1 — thanks for the clear report!

    Root cause: ConPTY (the Windows console backend) repaints each line padded to the full terminal width with real space characters, so xterm's selection API returns them verbatim — it can't tell a typed space from pad cells. Windows Terminal trims line-end whitespace on copy for exactly this reason; wmux now does the same on both copy paths (Ctrl+C in the terminal and the copy shortcut). Indentation and interior spacing are untouched — only trailing spaces/tabs per line are stripped.

    Grab the new build from the release page (or auto-update when available) and pasting into Notepad++ should be clean. 🙏

  2. added a commit that references this issue on Jul 28, 2026
    68118b4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0