[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.26 and 1.27

version 1.26, 2020/05/16 15:06:03 version 1.27, 2020/05/16 15:34:08
Line 130 
Line 130 
         free(menu);          free(menu);
 }  }
   
 static int  static struct screen *
 menu_mode_cb(struct client *c, __unused u_int *cx, __unused u_int *cy)  menu_mode_cb(struct client *c, __unused u_int *cx, __unused u_int *cy)
 {  {
         struct menu_data        *md = c->overlay_data;          struct menu_data        *md = c->overlay_data;
   
         if (~md->flags & MENU_NOMOUSE)          return (&md->s);
                 return (MODE_MOUSE_ALL);  
         return (0);  
 }  }
   
 static void  static void
Line 153 
Line 151 
   
         style_apply(&gc, c->session->curw->window->options, "mode-style", NULL);          style_apply(&gc, c->session->curw->window->options, "mode-style", NULL);
   
         screen_write_start(&ctx, NULL, s);          screen_write_start(&ctx, s);
         screen_write_clearscreen(&ctx, 8);          screen_write_clearscreen(&ctx, 8);
         screen_write_menu(&ctx, menu, md->choice, &gc);          screen_write_menu(&ctx, menu, md->choice, &gc);
         screen_write_stop(&ctx);          screen_write_stop(&ctx);
   
         for (i = 0; i < screen_size_y(&md->s); i++)          for (i = 0; i < screen_size_y(&md->s); i++) {
                 tty_draw_line(tty, NULL, s, 0, i, menu->width + 4, px, py + i);                  tty_draw_line(tty, s, 0, i, menu->width + 4, px, py + i,
                       &grid_default_cell, NULL);
           }
 }  }
   
 static void  static void
Line 349 
Line 349 
         if (fs != NULL)          if (fs != NULL)
                 cmd_find_copy_state(&md->fs, fs);                  cmd_find_copy_state(&md->fs, fs);
         screen_init(&md->s, menu->width + 4, menu->count + 2, 0);          screen_init(&md->s, menu->width + 4, menu->count + 2, 0);
           if (~md->flags & MENU_NOMOUSE)
                   md->s.mode |= MODE_MOUSE_ALL;
   
         md->px = px;          md->px = px;
         md->py = py;          md->py = py;

Legend:
Removed from v.1.26  
changed lines
  Added in v.1.27