[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.43 and 1.44

version 1.43, 2021/08/23 12:33:55 version 1.44, 2021/08/25 08:51:55
Line 27 
Line 27 
  * Display panes on a client.   * Display panes on a client.
  */   */
   
 static enum cmd_retval  cmd_display_panes_exec(struct cmd *,  static enum args_parse_type     cmd_display_panes_args_parse(struct args *,
                             struct cmdq_item *);                                      u_int, char **);
   static enum cmd_retval          cmd_display_panes_exec(struct cmd *,
                                       struct cmdq_item *);
   
 const struct cmd_entry cmd_display_panes_entry = {  const struct cmd_entry cmd_display_panes_entry = {
         .name = "display-panes",          .name = "display-panes",
         .alias = "displayp",          .alias = "displayp",
   
         .args = { "bd:Nt:", 0, 1, NULL },          .args = { "bd:Nt:", 0, 1, cmd_display_panes_args_parse },
         .usage = "[-bN] [-d duration] " CMD_TARGET_CLIENT_USAGE " [template]",          .usage = "[-bN] [-d duration] " CMD_TARGET_CLIENT_USAGE " [template]",
   
         .flags = CMD_AFTERHOOK|CMD_CLIENT_TFLAG,          .flags = CMD_AFTERHOOK|CMD_CLIENT_TFLAG,
Line 46 
Line 48 
         struct args_command_state       *state;          struct args_command_state       *state;
 };  };
   
   static enum args_parse_type
   cmd_display_panes_args_parse(__unused struct args *args, __unused u_int idx,
       __unused char **cause)
   {
           return (ARGS_PARSE_COMMANDS_OR_STRING);
   }
   
 static void  static void
 cmd_display_panes_draw_pane(struct screen_redraw_ctx *ctx,  cmd_display_panes_draw_pane(struct screen_redraw_ctx *ctx,
     struct window_pane *wp)      struct window_pane *wp)
Line 139 
Line 148 
                 if (sx >= len + llen + 1) {                  if (sx >= len + llen + 1) {
                         len += llen + 1;                          len += llen + 1;
                         tty_cursor(tty, xoff + px - len / 2, yoff + py);                          tty_cursor(tty, xoff + px - len / 2, yoff + py);
                         tty_putn(tty, buf, len,  len);                          tty_putn(tty, buf, len,  len);
                         tty_putn(tty, " ", 1, 1);                          tty_putn(tty, " ", 1, 1);
                         tty_putn(tty, lbuf, llen, llen);                          tty_putn(tty, lbuf, llen, llen);
                 } else {                  } else {
Line 263 
Line 272 
         struct args                     *args = cmd_get_args(self);          struct args                     *args = cmd_get_args(self);
         struct client                   *tc = cmdq_get_target_client(item);          struct client                   *tc = cmdq_get_target_client(item);
         struct session                  *s = tc->session;          struct session                  *s = tc->session;
         u_int                            delay;          u_int                            delay;
         char                            *cause;          char                            *cause;
         struct cmd_display_panes_data   *cdata;          struct cmd_display_panes_data   *cdata;
         int                              wait = !args_has(args, 'b');          int                              wait = !args_has(args, 'b');

Legend:
Removed from v.1.43  
changed lines
  Added in v.1.44