[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.250 and 1.251

version 1.250, 2020/03/15 20:44:19 version 1.251, 2020/03/16 14:17:56
Line 2877 
Line 2877 
 }  }
   
 static void  static void
 window_copy_synchronize_cursor_end(struct window_mode_entry *wme)  window_copy_synchronize_cursor_end(struct window_mode_entry *wme, int begin)
 {  {
         struct window_copy_mode_data    *data = wme->data;          struct window_copy_mode_data    *data = wme->data;
         u_int                            xx, yy;          u_int                            xx, yy;
         int                              begin = 0;  
   
         yy = screen_hsize(data->backing) + data->cy - data->oy;          yy = screen_hsize(data->backing) + data->cy - data->oy;
         switch (data->selflag) {          switch (data->selflag) {
         case SEL_WORD:          case SEL_WORD:
                   begin = 0;
                 xx = data->cx;                  xx = data->cx;
                 if (data->ws == NULL)                  if (data->ws == NULL)
                         break;                          break;
Line 2911 
Line 2911 
                 }                  }
                 break;                  break;
         case SEL_LINE:          case SEL_LINE:
                   begin = 0;
                 if (data->dy > yy) {                  if (data->dy > yy) {
                         /* Right to left selection. */                          /* Right to left selection. */
                         xx = 0;                          xx = 0;
Line 2948 
Line 2949 
   
         switch (data->cursordrag) {          switch (data->cursordrag) {
         case CURSORDRAG_ENDSEL:          case CURSORDRAG_ENDSEL:
                 window_copy_synchronize_cursor_end(wme);                  window_copy_synchronize_cursor_end(wme, 0);
                 break;                  break;
         case CURSORDRAG_SEL:          case CURSORDRAG_SEL:
                 data->selx = data->cx;                  window_copy_synchronize_cursor_end(wme, 1);
                 data->sely = screen_hsize(data->backing) + data->cy - data->oy;  
                 break;                  break;
         case CURSORDRAG_NONE:          case CURSORDRAG_NONE:
                 break;                  break;

Legend:
Removed from v.1.250  
changed lines
  Added in v.1.251