I just tried the latest tmux master and found that the colors in my Vim instance go crazy as soon as Vim loses focus. It's possible there's a quirk in my set-up and I may be doing something wrong but I'm reporting it anyway in case something unintended happened on the tmux side.
This screenshot shows the behavior; Vim is on the left and is bright green, but it's supposed to be dark, almost black.
I bisected the problem to 13a0b6b. Prior to that commit, if behaves as expected.
This is on Darwin i386, $TERM is xterm-256color outside of tmux, and tmux-256color inside tmux.
I repro'd with ./tmux -vvvv -Ltest -f/dev/null. Then I ran export TERM=tmux-256color, ran vim, and created a split; as soon as Vim loses focus the colors get borked.
./tmux -vvvv -Ltest -f/dev/null
This only happens with tmux-256color, not with screen or tmux or screen-256color. The terminfo for tmux-256color was made with tic -o path/to/terminfo path/to/input and this input file:
tic -o path/to/terminfo path/to/input
tmux-256color|tmux with 256 colors,
Will attach the server log file:
Like I said, I may be doing something wrong. Thanks for any light you can shed on this. In the meantime, I'm going to run on the parent commit, which doesn't exhibit the problem.
I am pretty sure this is fixed but the commit has not made it to GitHub yet, if you wait a day or so it should turn up.
Good to know. I'll loop back in a few days and close this once I've confirmed that it's fixed.
Actually, looks like it just got merged in (guessing 4c2a780 was the fix). Thanks!