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

Diff for /src/usr.bin/tmux/input-keys.c between version 1.38 and 1.39

version 1.38, 2014/07/21 10:25:48 version 1.39, 2014/07/21 20:45:35
Line 205 
Line 205 
         char                     buf[40];          char                     buf[40];
         size_t                   len;          size_t                   len;
         struct paste_buffer     *pb;          struct paste_buffer     *pb;
         u_int                    i;  
   
         /*  
          * If the alternate screen is active and hasn't enabled the mouse, send  
          * up and down key presses for the mouse wheel.  
          */  
         if (wp->saved_grid != NULL && !(wp->screen->mode & ALL_MOUSE_MODES)) {  
                 for (i = 0; i < m->scroll; i++) {  
                         if (m->wheel == MOUSE_WHEEL_UP)  
                                 input_key(wp, KEYC_UP);  
                         else  
                                 input_key(wp, KEYC_DOWN);  
                 }  
                 return;  
         }  
   
         if (wp->screen->mode & ALL_MOUSE_MODES) {          if (wp->screen->mode & ALL_MOUSE_MODES) {
                 /*                  /*

Legend:
Removed from v.1.38  
changed lines
  Added in v.1.39