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

Diff for /src/usr.bin/tmux/cmd-display-menu.c between version 1.36 and 1.37

version 1.36, 2021/10/20 09:50:40 version 1.37, 2021/10/25 09:38:36
Line 53 
Line 53 
         .name = "display-popup",          .name = "display-popup",
         .alias = "popup",          .alias = "popup",
   
         .args = { "Bb:Cc:d:e:Eh:t:T:w:x:y:", 0, -1, NULL },          .args = { "Bb:Cc:d:e:Eh:s:S:t:T:w:x:y:", 0, -1, NULL },
         .usage = "[-BCE] [-b border-lines] [-c target-client] "          .usage = "[-BCE] [-b border-lines] [-c target-client] "
                  "[-d start-directory] [-e environment] [-h height] "                   "[-d start-directory] [-e environment] [-h height] "
                  CMD_TARGET_PANE_USAGE " [-T title] "                   "[-s style] [-S border-style] " CMD_TARGET_PANE_USAGE
                  "[-w width] [-x position] [-y position] [shell-command]",                   "[-T title] [-w width] [-x position] [-y position] "
                    "[shell-command]",
   
         .target = { 't', CMD_FIND_PANE, 0 },          .target = { 't', CMD_FIND_PANE, 0 },
   
Line 355 
Line 356 
         struct client           *tc = cmdq_get_target_client(item);          struct client           *tc = cmdq_get_target_client(item);
         struct tty              *tty = &tc->tty;          struct tty              *tty = &tc->tty;
         const char              *value, *shell, *shellcmd = NULL;          const char              *value, *shell, *shellcmd = NULL;
           const char              *style = args_get(args, 's');
           const char              *border_style = args_get(args, 'S');
         char                    *cwd, *cause = NULL, **argv = NULL, *title;          char                    *cwd, *cause = NULL, **argv = NULL, *title;
         int                      flags = 0, argc = 0;          int                      flags = 0, argc = 0;
         enum box_lines           lines = BOX_LINES_DEFAULT;          enum box_lines           lines = BOX_LINES_DEFAULT;
Line 448 
Line 451 
         else if (args_has(args, 'E'))          else if (args_has(args, 'E'))
                 flags |= POPUP_CLOSEEXIT;                  flags |= POPUP_CLOSEEXIT;
         if (popup_display(flags, lines, item, px, py, w, h, env, shellcmd, argc,          if (popup_display(flags, lines, item, px, py, w, h, env, shellcmd, argc,
             argv, cwd, title, tc, s, NULL, NULL) != 0) {              argv, cwd, title, tc, s, style, border_style, NULL, NULL) != 0) {
                 cmd_free_argv(argc, argv);                  cmd_free_argv(argc, argv);
                 if (env != NULL)                  if (env != NULL)
                         environ_free(env);                          environ_free(env);

Legend:
Removed from v.1.36  
changed lines
  Added in v.1.37