[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.302 and 1.303

version 1.302, 2020/08/05 09:11:09 version 1.303, 2020/09/16 18:37:55
Line 72 
Line 72 
                     struct screen *, int, int);                      struct screen *, int, int);
 static void     window_copy_clear_marks(struct window_mode_entry *);  static void     window_copy_clear_marks(struct window_mode_entry *);
 static void     window_copy_move_left(struct screen *, u_int *, u_int *, int);  static void     window_copy_move_left(struct screen *, u_int *, u_int *, int);
 static void     window_copy_move_right(struct screen *, u_int *, u_int *, int);  
 static int      window_copy_is_lowercase(const char *);  static int      window_copy_is_lowercase(const char *);
 static int      window_copy_search_jump(struct window_mode_entry *,  static int      window_copy_search_jump(struct window_mode_entry *,
                     struct grid *, struct grid *, u_int, u_int, u_int, int, int,                      struct grid *, struct grid *, u_int, u_int, u_int, int, int,
Line 2817 
Line 2816 
                 *fx = *fx - 1;                  *fx = *fx - 1;
 }  }
   
 static void  
 window_copy_move_right(struct screen *s, u_int *fx, u_int *fy, int wrapflag)  
 {  
         if (*fx == screen_size_x(s) - 1) { /* right */  
                 if (*fy == screen_hsize(s) + screen_size_y(s) - 1) { /* bottom */  
                         if (wrapflag) {  
                                 *fx = 0;  
                                 *fy = 0;  
                         }  
                         return;  
                 }  
                 *fx = 0;  
                 *fy = *fy + 1;  
         } else  
                 *fx = *fx + 1;  
 }  
   
 static int  static int
 window_copy_is_lowercase(const char *ptr)  window_copy_is_lowercase(const char *ptr)
 {  {
Line 2930 
Line 2912 
  * down.   * down.
  */   */
 static int  static int
 window_copy_search(struct window_mode_entry *wme, int direction, int regex, int again)  window_copy_search(struct window_mode_entry *wme, int direction, int regex,
       int again)
 {  {
         struct window_pane              *wp = wme->wp;          struct window_pane              *wp = wme->wp;
         struct window_copy_mode_data    *data = wme->data;          struct window_copy_mode_data    *data = wme->data;

Legend:
Removed from v.1.302  
changed lines
  Added in v.1.303