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

Diff for /src/usr.bin/tmux/format.c between version 1.239 and 1.240

version 1.239, 2020/04/13 14:04:25 version 1.240, 2020/04/13 14:46:04
Line 1124 
Line 1124 
 static void  static void
 format_create_add_item(struct format_tree *ft, struct cmdq_item *item)  format_create_add_item(struct format_tree *ft, struct cmdq_item *item)
 {  {
         struct cmdq_state       *state = cmdq_get_state(item);          struct key_event        *event = cmdq_get_event(item);
         struct mouse_event      *m;          struct mouse_event      *m = &event->m;
         struct window_pane      *wp;          struct window_pane      *wp;
         u_int                    x, y;          u_int                    x, y;
   
         cmdq_merge_formats(item, ft);          cmdq_merge_formats(item, ft);
   
         if (state == NULL)  
                 return;  
         m = &state->event.m;  
         if (m->valid && ((wp = cmd_mouse_pane(m, NULL, NULL)) != NULL)) {          if (m->valid && ((wp = cmd_mouse_pane(m, NULL, NULL)) != NULL)) {
                 format_add(ft, "mouse_pane", "%%%u", wp->id);                  format_add(ft, "mouse_pane", "%%%u", wp->id);
                 if (cmd_mouse_at(wp, m, &x, &y, 0) == 0) {                  if (cmd_mouse_at(wp, m, &x, &y, 0) == 0) {

Legend:
Removed from v.1.239  
changed lines
  Added in v.1.240