[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.13 and 1.14

version 1.13, 2020/04/13 18:59:41 version 1.14, 2020/05/16 15:24:28
Line 40 
Line 40 
         struct job               *job;          struct job               *job;
         struct input_ctx         *ictx;          struct input_ctx         *ictx;
         int                       status;          int                       status;
           popup_close_cb            cb;
           void                     *arg;
   
         u_int                     px;          u_int                     px;
         u_int                     py;          u_int                     py;
Line 150 
Line 152 
         struct cmdq_item        *item = pd->item;          struct cmdq_item        *item = pd->item;
         u_int                    i;          u_int                    i;
   
           if (pd->cb != NULL)
                   pd->cb(pd->status, pd->arg);
   
         if (item != NULL) {          if (item != NULL) {
                 if (pd->ictx != NULL &&                  if (pd->ictx != NULL &&
                     cmdq_get_client(item) != NULL &&                      cmdq_get_client(item) != NULL &&
Line 403 
Line 408 
 popup_display(int flags, struct cmdq_item *item, u_int px, u_int py, u_int sx,  popup_display(int flags, struct cmdq_item *item, u_int px, u_int py, u_int sx,
     u_int sy, u_int nlines, const char **lines, const char *shellcmd,      u_int sy, u_int nlines, const char **lines, const char *shellcmd,
     const char *cmd, const char *cwd, struct client *c,      const char *cmd, const char *cwd, struct client *c,
     struct cmd_find_state *fs)      struct cmd_find_state *fs, popup_close_cb cb, void *arg)
 {  {
         struct popup_data       *pd;          struct popup_data       *pd;
         u_int                    i;          u_int                    i;
Line 422 
Line 427 
         pd->c = c;          pd->c = c;
         pd->c->references++;          pd->c->references++;
   
           pd->cb = cb;
           pd->arg = arg;
         pd->status = 128 + SIGHUP;          pd->status = 128 + SIGHUP;
   
         if (fs != NULL)          if (fs != NULL)

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.14