-
Notifications
You must be signed in to change notification settings - Fork 60
Description
Moving this from here: tmux/tmux#362
I've noticed after leaving a tmux session open for a long time (10 days apparently), when pasting, it scrambles the pasted content. Restarting the tmux server fixes it, so it's not that bad. It's happened several times to me over the last few months, but I finally have time to record all the details.
Here is a quick example of what happens when trying to paste the alphabet. It appears like for short pasted content, it's only visually altered?
$ abcdefghijklmoprstuvwxz nqy
-bash: abcdefghijklmoprstuvwxz: command not found
The idea is this caused from this plungin:
The culprit is almost definitely tmux-copycat. It binds n, q, and y in the root table (i.e. intercepts them without needing prefix) and I noticed sometimes it doesn't clear those bindings. As a result, pressing those keys takes longer than other keys because they run a shell script resulting in what you described.