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

Diff for /src/usr.bin/tmux/popup.c between version 1.7 and 1.8

version 1.7, 2020/04/07 13:33:00 version 1.8, 2020/04/13 10:59:59
Line 64 
Line 64 
         struct format_tree      *ft;          struct format_tree      *ft;
         u_int                    i, y;          u_int                    i, y;
   
         ft = format_create(item->client, item, FORMAT_NONE, 0);          ft = format_create(c, item, FORMAT_NONE, 0);
         if (cmd_find_valid_state(&pd->fs))          if (cmd_find_valid_state(&pd->fs))
                 format_defaults(ft, c, pd->fs.s, pd->fs.wl, pd->fs.wp);                  format_defaults(ft, c, pd->fs.s, pd->fs.wl, pd->fs.wp);
         else          else
Line 152 
Line 152 
   
         if (item != NULL) {          if (item != NULL) {
                 if (pd->ictx != NULL &&                  if (pd->ictx != NULL &&
                     item->client != NULL &&                      cmdq_get_client(item) != NULL &&
                     item->client->session == NULL)                      cmdq_get_client(item)->session == NULL)
                         item->client->retval = pd->status;                          cmdq_get_client(item)->retval = pd->status;
                 cmdq_continue(item);                  cmdq_continue(item);
         }          }
         server_client_unref(pd->c);          server_client_unref(pd->c);
Line 305 
Line 305 
                 break;                  break;
         case CMD_PARSE_SUCCESS:          case CMD_PARSE_SUCCESS:
                 if (pd->item != NULL)                  if (pd->item != NULL)
                         m = &pd->item->shared->mouse;                          m = &cmdq_get_shared(pd->item)->mouse;
                 else                  else
                         m = NULL;                          m = NULL;
                 new_item = cmdq_get_command(pr->cmdlist, fs, m, 0);                  new_item = cmdq_get_command(pr->cmdlist, fs, m, 0);
Line 382 
Line 382 
         struct format_tree      *ft;          struct format_tree      *ft;
         u_int                    i, width = 0, tmpwidth;          u_int                    i, width = 0, tmpwidth;
   
         ft = format_create(item->client, item, FORMAT_NONE, 0);          ft = format_create(cmdq_get_client(item), item, FORMAT_NONE, 0);
         if (fs != NULL && cmd_find_valid_state(fs))          if (fs != NULL && cmd_find_valid_state(fs))
                 format_defaults(ft, c, fs->s, fs->wl, fs->wp);                  format_defaults(ft, c, fs->s, fs->wl, fs->wp);
         else          else

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8