[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.227 and 1.228

version 1.227, 2019/07/05 07:52:27 version 1.228, 2019/07/08 20:29:11
Line 577 
Line 577 
         struct window_copy_mode_data    *data = wme->data;          struct window_copy_mode_data    *data = wme->data;
         struct screen                   *s = &data->screen;          struct screen                   *s = &data->screen;
         struct screen_write_ctx          ctx;          struct screen_write_ctx          ctx;
           int                              search;
   
         screen_resize(s, sx, sy, 1);          screen_resize(s, sx, sy, 1);
         if (data->backing != &wp->base)          if (data->backing != &wp->base)
Line 589 
Line 590 
         if (data->oy > screen_hsize(data->backing))          if (data->oy > screen_hsize(data->backing))
                 data->oy = screen_hsize(data->backing);                  data->oy = screen_hsize(data->backing);
   
           search = (data->searchmark != NULL);
         window_copy_clear_selection(wme);          window_copy_clear_selection(wme);
           window_copy_clear_marks(wme);
   
         screen_write_start(&ctx, NULL, s);          screen_write_start(&ctx, NULL, s);
         window_copy_write_lines(wme, &ctx, 0, screen_size_y(s) - 1);          window_copy_write_lines(wme, &ctx, 0, screen_size_y(s) - 1);
         screen_write_stop(&ctx);          screen_write_stop(&ctx);
   
         if (data->searchmark != NULL)          if (search)
                 window_copy_search_marks(wme, NULL);                  window_copy_search_marks(wme, NULL);
         data->searchx = data->cx;          data->searchx = data->cx;
         data->searchy = data->cy;          data->searchy = data->cy;

Legend:
Removed from v.1.227  
changed lines
  Added in v.1.228