[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.54 and 1.55

version 1.54, 2021/06/10 07:50:03 version 1.55, 2021/06/10 07:52:56
Line 40 
Line 40 
         .name = "command-prompt",          .name = "command-prompt",
         .alias = NULL,          .alias = NULL,
   
         .args = { "1kiI:Np:t:T:", 0, 1 },          .args = { "1FkiI:Np:t:T:", 0, 1 },
         .usage = "[-1kiN] [-I inputs] [-p prompts] " CMD_TARGET_CLIENT_USAGE          .usage = "[-1FkiN] [-I inputs] [-p prompts] " CMD_TARGET_CLIENT_USAGE
                  " [-T type] [template]",                   " [-T type] [template]",
   
         .flags = CMD_CLIENT_TFLAG,          .flags = CMD_CLIENT_TFLAG,
Line 59 
Line 59 
         char            *next_prompt;          char            *next_prompt;
   
         char            *template;          char            *template;
         int             idx;          int              idx;
 };  };
   
 static enum cmd_retval  static enum cmd_retval
Line 87 
Line 87 
         cdata->template = NULL;          cdata->template = NULL;
         cdata->idx = 1;          cdata->idx = 1;
   
         if (args->argc != 0)          if (args->argc != 0 && args_has(args, 'F'))
               cdata->template = format_single_from_target(item, args->argv[0]);
           else if (args->argc != 0)
                 cdata->template = xstrdup(args->argv[0]);                  cdata->template = xstrdup(args->argv[0]);
         else          else
                 cdata->template = xstrdup("%1");                  cdata->template = xstrdup("%1");

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