I'll admit that I'm not 100% sure that this issue is directly tmux-related,
since it may only happen in vim (vim is the only scroll-aware program on
the box, so I've only the single datapoint).
The apparent effect is that in vim, you can scroll down, but not up. After
much debugging I've narrowed it down to this: For every ScrollDown or
ScrollUp event, an extra ScrollDown event is generated just afterwords.
This causes scroll up events to be cancelled out and scroll down events to
go twice as fast.
In copy-mode (I think that's the right word. It's the mode that happens
when you hit <C-b>PgUp.), it seems to scroll correctly. When vim is run
outside of tmux, it gets the right set of events. When vim is run in (a
completely non-mouse-aware) screen, it scrolls correctly (but who would use
screen with tmux available? :) ).
I've tried every permutation of commenting and uncommenting each of these
lines in my ~/.tmux.conf file:
set-option -g mode-mouse on
set-option -g mouse-resize-pane on
set-option -g mouse-select-pane on
set-option -g mouse-select-window on
set-option -g mouse-utf8 on
(Normally, I'd like them on, but I turned off all my non-standard and
unrelated settings for debugging.)
Changing the options does change the behaviour outside of vim, exactly as
expected. And vim remains mouse-aware, properly except for the scrolling
issue.
In case it's relevant, I'm using PuTTY to ssh into the Ubuntu box, which is
running tmux 1.8 and vim 7.4. I have an older box running tmux 1.7 and vim
7.3 that scrolls correctly when used in combination.
I know it's a long shot, but I'm hoping that either somebody here has
encountered and knows the solution to such a problem or has debugging tips
that might get me pointed in the right direction.
------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT
organizations don't have a clear picture of how application performance
affects their revenue. With AppDynamics, you get 100% visibility into your
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users