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

Diff for /src/usr.bin/tmux/cmd-command-prompt.c between version 1.34 and 1.35

version 1.34, 2016/10/10 21:51:39 version 1.35, 2016/10/11 07:23:34
Line 38 
Line 38 
         .name = "command-prompt",          .name = "command-prompt",
         .alias = NULL,          .alias = NULL,
   
         .args = { "I:p:t:", 0, 1 },          .args = { "1I:p:t:", 0, 1 },
         .usage = "[-I inputs] [-p prompts] " CMD_TARGET_CLIENT_USAGE " "          .usage = "[-1] [-I inputs] [-p prompts] " CMD_TARGET_CLIENT_USAGE " "
                  "[template]",                   "[template]",
   
         .tflag = CMD_CLIENT,          .tflag = CMD_CLIENT,
Line 67 
Line 67 
         struct client                   *c = cmdq->state.c;          struct client                   *c = cmdq->state.c;
         char                            *prompt, *ptr, *input = NULL;          char                            *prompt, *ptr, *input = NULL;
         size_t                           n;          size_t                           n;
           int                              flags;
   
         if (c->prompt_string != NULL)          if (c->prompt_string != NULL)
                 return (CMD_RETURN_NORMAL);                  return (CMD_RETURN_NORMAL);
Line 108 
Line 109 
                 input = strsep(&cdata->next_input, ",");                  input = strsep(&cdata->next_input, ",");
         }          }
   
           flags = 0;
           if (args_has(args, '1'))
                   flags |= PROMPT_SINGLE;
         status_prompt_set(c, prompt, input, cmd_command_prompt_callback,          status_prompt_set(c, prompt, input, cmd_command_prompt_callback,
             cmd_command_prompt_free, cdata, 0);              cmd_command_prompt_free, cdata, flags);
         free(prompt);          free(prompt);
   
         return (CMD_RETURN_NORMAL);          return (CMD_RETURN_NORMAL);

Legend:
Removed from v.1.34  
changed lines
  Added in v.1.35