[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.263 and 1.264

version 1.263, 2020/04/01 09:36:37 version 1.264, 2020/04/02 17:03:10
Line 509 
Line 509 
                         window_copy_cursor_end_of_line(wme);                          window_copy_cursor_end_of_line(wme);
         }          }
   
           if (data->searchmark != NULL && !data->timeout)
                   window_copy_search_marks(wme, NULL, data->searchregex);
         window_copy_update_selection(wme, 1, 0);          window_copy_update_selection(wme, 1, 0);
         window_copy_redraw_screen(wme);          window_copy_redraw_screen(wme);
 }  }
Line 557 
Line 559 
   
         if (scroll_exit && data->oy == 0)          if (scroll_exit && data->oy == 0)
                 return (1);                  return (1);
           if (data->searchmark != NULL && !data->timeout)
                   window_copy_search_marks(wme, NULL, data->searchregex);
         window_copy_update_selection(wme, 1, 0);          window_copy_update_selection(wme, 1, 0);
         window_copy_redraw_screen(wme);          window_copy_redraw_screen(wme);
         return (0);          return (0);
Line 1049 
Line 1053 
         data->cx = window_copy_find_length(wme, data->cy);          data->cx = window_copy_find_length(wme, data->cy);
         data->oy = 0;          data->oy = 0;
   
           if (data->searchmark != NULL && !data->timeout)
                   window_copy_search_marks(wme, NULL, data->searchregex);
         window_copy_update_selection(wme, 1, 0);          window_copy_update_selection(wme, 1, 0);
         return (WINDOW_COPY_CMD_REDRAW);          return (WINDOW_COPY_CMD_REDRAW);
 }  }
Line 1068 
Line 1074 
         data->cx = 0;          data->cx = 0;
         data->oy = screen_hsize(data->backing);          data->oy = screen_hsize(data->backing);
   
           if (data->searchmark != NULL && !data->timeout)
                   window_copy_search_marks(wme, NULL, data->searchregex);
         window_copy_update_selection(wme, 1, 0);          window_copy_update_selection(wme, 1, 0);
         return (WINDOW_COPY_CMD_REDRAW);          return (WINDOW_COPY_CMD_REDRAW);
 }  }
Line 2200 
Line 2208 
                 data->oy = gd->hsize - offset;                  data->oy = gd->hsize - offset;
         }          }
   
           if (data->searchmark != NULL && !data->timeout)
                   window_copy_search_marks(wme, NULL, data->searchregex);
         window_copy_update_selection(wme, 1, 0);          window_copy_update_selection(wme, 1, 0);
         window_copy_redraw_screen(wme);          window_copy_redraw_screen(wme);
 }  }
Line 2777 
Line 2787 
         struct screen                   *s = data->backing, ss;          struct screen                   *s = data->backing, ss;
         struct screen_write_ctx          ctx;          struct screen_write_ctx          ctx;
         struct grid                     *gd = s->grid;          struct grid                     *gd = s->grid;
           const struct grid_line          *gl;
         int                              found, cis, which = -1;          int                              found, cis, which = -1;
         int                              cflags = REG_EXTENDED;          int                              cflags = REG_EXTENDED;
         u_int                            px, py, b, nfound = 0, width;          u_int                            px, py, b, nfound = 0, width;
Line 2814 
Line 2825 
                 }                  }
         }          }
         time(&tstart);          time(&tstart);
         for (py = 0; py < gd->hsize + gd->sy; py++) {          py = gd->hsize - data->oy;
           if (py > 0)
                   py--;
           for (; py > 0; py--) {
                   gl = grid_peek_line(gd, py);
                   if (~gl->flags & GRID_LINE_WRAPPED)
                           break;
           }
           for (; py < gd->hsize - data->oy + gd->sy; py++) {
                 px = 0;                  px = 0;
                 for (;;) {                  for (;;) {
                         if (regex) {                          if (regex) {
Line 4190 
Line 4209 
                 return;                  return;
         data->oy -= ny;          data->oy -= ny;
   
           if (data->searchmark != NULL && !data->timeout)
                   window_copy_search_marks(wme, NULL, data->searchregex);
         window_copy_update_selection(wme, 0, 0);          window_copy_update_selection(wme, 0, 0);
   
         screen_write_start(&ctx, wp, NULL);          screen_write_start(&ctx, wp, NULL);
Line 4224 
Line 4245 
                 return;                  return;
         data->oy += ny;          data->oy += ny;
   
           if (data->searchmark != NULL && !data->timeout)
                   window_copy_search_marks(wme, NULL, data->searchregex);
         window_copy_update_selection(wme, 0, 0);          window_copy_update_selection(wme, 0, 0);
   
         screen_write_start(&ctx, wp, NULL);          screen_write_start(&ctx, wp, NULL);

Legend:
Removed from v.1.263  
changed lines
  Added in v.1.264