[BACK]Return to cmd-display-panes.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / tmux

Diff for /src/usr.bin/tmux/cmd-display-panes.c between version 1.22 and 1.23

version 1.22, 2018/11/15 10:38:53 version 1.23, 2019/02/06 07:36:06
Line 37 
Line 37 
         .name = "display-panes",          .name = "display-panes",
         .alias = "displayp",          .alias = "displayp",
   
         .args = { "d:t:", 0, 1 },          .args = { "bd:t:", 0, 1 },
         .usage = "[-d duration] " CMD_TARGET_CLIENT_USAGE " [template]",          .usage = "[-b] [-d duration] " CMD_TARGET_CLIENT_USAGE " [template]",
   
         .flags = CMD_AFTERHOOK,          .flags = CMD_AFTERHOOK,
         .exec = cmd_display_panes_exec          .exec = cmd_display_panes_exec
Line 65 
Line 65 
                 c->identify_callback_data = xstrdup(args->argv[0]);                  c->identify_callback_data = xstrdup(args->argv[0]);
         else          else
                 c->identify_callback_data = xstrdup("select-pane -t '%%'");                  c->identify_callback_data = xstrdup("select-pane -t '%%'");
         c->identify_callback_item = item;          if (args_has(args, 'b'))
                   c->identify_callback_item = NULL;
           else
                   c->identify_callback_item = item;
   
         if (args_has(args, 'd')) {          if (args_has(args, 'd')) {
                 delay = args_strtonum(args, 'd', 0, UINT_MAX, &cause);                  delay = args_strtonum(args, 'd', 0, UINT_MAX, &cause);
Line 78 
Line 81 
                 delay = options_get_number(s->options, "display-panes-time");                  delay = options_get_number(s->options, "display-panes-time");
         server_client_set_identify(c, delay);          server_client_set_identify(c, delay);
   
           if (args_has(args, 'b'))
                   return (CMD_RETURN_NORMAL);
         return (CMD_RETURN_WAIT);          return (CMD_RETURN_WAIT);
 }  }
   
Line 115 
Line 120 
                 cmd_list_free(cmdlist);                  cmd_list_free(cmdlist);
         }          }
   
         if (new_item != NULL)          if (new_item != NULL) {
                 cmdq_insert_after(c->identify_callback_item, new_item);                  if (c->identify_callback_item != NULL)
                           cmdq_insert_after(c->identify_callback_item, new_item);
                   else
                           cmdq_append(c, new_item);
           }
   
         free(cmd);          free(cmd);
         free(expanded);          free(expanded);
   
 out:  out:
         c->identify_callback_item->flags &= ~CMDQ_WAITING;          if (c->identify_callback_item != NULL) {
         c->identify_callback_item = NULL;                  c->identify_callback_item->flags &= ~CMDQ_WAITING;
                   c->identify_callback_item = NULL;
           }
   
         free(c->identify_callback_data);          free(c->identify_callback_data);
         c->identify_callback_data = NULL;          c->identify_callback_data = NULL;

Legend:
Removed from v.1.22  
changed lines
  Added in v.1.23