Revision: 2763 http://tmux.svn.sourceforge.net/tmux/?rev=2763&view=rev Author: tcunha Date: 2012-04-10 09:45:41 +0000 (Tue, 10 Apr 2012) Log Message: ----------- Sync OpenBSD patchset 1082:
Only exit mouse mode on scroll wheel when actually reaching the end of the history, from James Nylen. Modified Paths: -------------- trunk/window-copy.c Modified: trunk/window-copy.c =================================================================== --- trunk/window-copy.c 2012-04-10 09:44:58 UTC (rev 2762) +++ trunk/window-copy.c 2012-04-10 09:45:41 UTC (rev 2763) @@ -822,7 +822,7 @@ { struct window_copy_mode_data *data = wp->modedata; struct screen *s = &data->screen; - u_int i, old_cy; + u_int i; if (m->x >= screen_size_x(s)) return; @@ -835,10 +835,9 @@ for (i = 0; i < 5; i++) window_copy_cursor_up(wp, 0); } else if ((m->b & MOUSE_BUTTON) == MOUSE_2) { - old_cy = data->cy; for (i = 0; i < 5; i++) window_copy_cursor_down(wp, 0); - if (old_cy == data->cy) + if (data->oy == 0) goto reset_mode; } return; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ Better than sec? Nothing is better than sec when it comes to monitoring Big Data applications. Try Boundary one-second resolution app monitoring today. Free. http://p.sf.net/sfu/Boundary-dev2dev _______________________________________________ tmux-cvs mailing list tmux-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-cvs