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

Diff for /src/usr.bin/tmux/cmd-display-message.c between version 1.55 and 1.56

version 1.55, 2020/07/27 08:03:10 version 1.56, 2021/04/07 12:49:33
Line 43 
Line 43 
         .usage = "[-aIpv] [-c target-client] [-d delay] [-F format] "          .usage = "[-aIpv] [-c target-client] [-d delay] [-F format] "
                  CMD_TARGET_PANE_USAGE " [message]",                   CMD_TARGET_PANE_USAGE " [message]",
   
         .target = { 't', CMD_FIND_PANE, 0 },          .target = { 't', CMD_FIND_PANE, CMD_FIND_CANFAIL },
   
         .flags = CMD_AFTERHOOK|CMD_CLIENT_CFLAG|CMD_CLIENT_CANFAIL,          .flags = CMD_AFTERHOOK|CMD_CLIENT_CFLAG|CMD_CLIENT_CANFAIL,
         .exec = cmd_display_message_exec          .exec = cmd_display_message_exec
Line 73 
Line 73 
         int                      flags;          int                      flags;
   
         if (args_has(args, 'I')) {          if (args_has(args, 'I')) {
                   if (wp == NULL)
                           return (CMD_RETURN_NORMAL);
                 if (window_pane_start_input(wp, item, &cause) != 0) {                  if (window_pane_start_input(wp, item, &cause) != 0) {
                         cmdq_error(item, "%s", cause);                          cmdq_error(item, "%s", cause);
                         free(cause);                          free(cause);
Line 109 
Line 111 
          */           */
         if (tc != NULL && tc->session == s)          if (tc != NULL && tc->session == s)
                 c = tc;                  c = tc;
         else          else if (s != NULL)
                 c = cmd_find_best_client(s);                  c = cmd_find_best_client(s);
           else
                   c = NULL;
         if (args_has(args, 'v'))          if (args_has(args, 'v'))
                 flags = FORMAT_VERBOSE;                  flags = FORMAT_VERBOSE;
         else          else
Line 124 
Line 128 
         }          }
   
         msg = format_expand_time(ft, template);          msg = format_expand_time(ft, template);
         if (args_has(args, 'p'))          if (cmdq_get_client(item) == NULL)
                   cmdq_error(item, "%s", msg);
           else if (args_has(args, 'p'))
                 cmdq_print(item, "%s", msg);                  cmdq_print(item, "%s", msg);
         else if (tc != NULL)          else if (tc != NULL)
                 status_message_set(tc, delay, 0, "%s", msg);                  status_message_set(tc, delay, 0, "%s", msg);

Legend:
Removed from v.1.55  
changed lines
  Added in v.1.56