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

Diff for /src/usr.bin/tmux/menu.c between version 1.37 and 1.38

version 1.37, 2021/09/09 19:37:17 version 1.38, 2021/10/11 13:27:50
Line 140 
Line 140 
         return (&md->s);          return (&md->s);
 }  }
   
 int  /* Return parts of the input range which are not obstructed by the menu. */
 menu_check_cb(__unused struct client *c, void *data, u_int px, u_int py)  void
   menu_check_cb(__unused struct client *c, void *data, u_int px, u_int py,
       u_int nx, struct overlay_ranges *r)
 {  {
         struct menu_data        *md = data;          struct menu_data        *md = data;
         struct menu             *menu = md->menu;          struct menu             *menu = md->menu;
   
         if (px < md->px || px > md->px + menu->width + 3)          server_client_overlay_range(md->px, md->py, menu->width + 4,
                 return (1);              menu->count + 2, px, py, nx, r);
         if (py < md->py || py > md->py + menu->count + 1)  
                 return (1);  
         return (0);  
 }  }
   
 void  void

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