[BACK]Return to window-copy.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / tmux

Diff for /src/usr.bin/tmux/window-copy.c between version 1.103 and 1.104

version 1.103, 2014/03/31 21:39:31 version 1.104, 2014/04/03 08:20:29
Line 871 
Line 871 
   
         /* If mouse wheel (buttons 4 and 5), scroll. */          /* If mouse wheel (buttons 4 and 5), scroll. */
         if (m->event == MOUSE_EVENT_WHEEL) {          if (m->event == MOUSE_EVENT_WHEEL) {
                 if (m->wheel == MOUSE_WHEEL_UP) {                  for (i = 0; i < m->scroll; i++) {
                         for (i = 0; i < 5; i++)                          if (m->wheel == MOUSE_WHEEL_UP)
                                 window_copy_cursor_up(wp, 1);                                  window_copy_cursor_up(wp, 1);
                 } else if (m->wheel == MOUSE_WHEEL_DOWN) {                          else {
                         for (i = 0; i < 5; i++)  
                                 window_copy_cursor_down(wp, 1);                                  window_copy_cursor_down(wp, 1);
                         /*  
                          * We reached the bottom, leave copy mode,                                  /*
                          * but only if no selection is in progress.                                   * We reached the bottom, leave copy mode, but
                          */                                   * only if no selection is in progress.
                         if (data->oy == 0 && !s->sel.flag)                                   */
                             goto reset_mode;                                  if (data->oy == 0 && !s->sel.flag)
                                           goto reset_mode;
                           }
                 }                  }
                 return;                  return;
         }          }

Legend:
Removed from v.1.103  
changed lines
  Added in v.1.104