.tmux: Last character is missing when copy & pasting

I have this one weird issue: When I copy text from a running tmux session (macOS) with your config files the last character is missing in the clipboard. It is always the last one, regardless of the symbol.

When I run tmux -L test -f /dev/null all characters can be copied flawlessly. I tested several different terminal applications (iTerm 2, Alacritty, macOS Terminal). That’s not the reason. The issue only occurs with your configuration.

Is somebody else having this issue? How can I help to solve this problem - because it is bothering endlessly.

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 21 (9 by maintainers)

Commits related to this issue

Most upvoted comments

Apologies for commenting on an old ticket. This has come up for me on the last two computers I’ve set up and both times I forgot how I fixed it and found this issue. Ultimately, I fixed this by exporting EDITOR and VISUAL environment variables in my .zshrc:

export EDITOR=/usr/local/bin/vim
export VISUAL=$EDITOR

@ncreuschling I had the same issue with mouse copy/paste and I solved it by compiling tmux without --enable-utf8proc (brew version uses the flag by default)