Join GitHub today
Tmux copy-mode copied text loss #1002
Which operating system does the issue occur on?
I use tmux and tmux-plugins/tmux-yank to copy text to system clipboard (through copy-mode y command). When I copied, say 30 lines, and CTRL-V paste them to sublime, there are only 10 lines pasted, the other lines are lost.
Tested with system terminal, It works fine.
So its probably
All right, it took me a while but I managed to reproduce at least something! Here's what I've got:
In summary, I reproduce the issue with the default behavior of
Alternative to unbinding
And now it all makes sense, because
Let's kindly invite @geertj to the thread. TL;DR:
@maximbaz, I've not used
Since tmux-yank and set-clipboard do essentially the same thing, I think you'd have to use one or the other. If you disable tmux-yank and enable set-clipboard, do you still see partial data on the clipboard? If so, could you add a
Something weird happened, I can't get
Mystery solved, apparently
Anyway, now I can answer your question @geertj. OSC 52 handler is called only once per selection, and the parameters are
So I'm not sure what to blame exactly, since
Click to see one example
Here's the arguments for
If I convert this manually to a string and then try to decode the string, I'll get the following:
I thought that this line literally means "whatever xterm defines, I have that too":
However even manually adding
By the way, this has also been reported to tmux, closed with "use
referenced this issue
Mar 19, 2018
To add extra info to this issue, I've had literally the exact same issue with tmux, except I can completely eliminate alacritty from the equation; the issue happens in urxvt too.
And the solution is the same: putting
HUGE thanks to @maximbaz; I've been pulling my hair out over this for the last few days.