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

Diff for /src/usr.bin/tmux/cmd-select-pane.c between version 1.50 and 1.51

version 1.50, 2019/04/30 06:21:30 version 1.51, 2019/06/20 11:59:59
Line 33 
Line 33 
         .name = "select-pane",          .name = "select-pane",
         .alias = "selectp",          .alias = "selectp",
   
         .args = { "DdegLlMmP:RT:t:U", 0, 0 },          .args = { "DdegLlMmP:RT:t:U", 0, 0 }, /* -P and -g deprecated */
         .usage = "[-DdegLlMmRU] [-P style] [-T title] " CMD_TARGET_PANE_USAGE,          .usage = "[-DdeLlMmRU] [-T title] " CMD_TARGET_PANE_USAGE,
   
         .target = { 't', CMD_FIND_PANE, 0 },          .target = { 't', CMD_FIND_PANE, 0 },
   
Line 90 
Line 90 
         struct window           *w = wl->window;          struct window           *w = wl->window;
         struct session          *s = item->target.s;          struct session          *s = item->target.s;
         struct window_pane      *wp = item->target.wp, *lastwp, *markedwp;          struct window_pane      *wp = item->target.wp, *lastwp, *markedwp;
         struct style            *sy = &wp->style;  
         char                    *pane_title;          char                    *pane_title;
         const char              *style;          const char              *style;
           struct style            *sy;
           struct options_entry    *o;
   
         if (self->entry == &cmd_last_pane_entry || args_has(args, 'l')) {          if (self->entry == &cmd_last_pane_entry || args_has(args, 'l')) {
                 lastwp = w->last;                  lastwp = w->last;
Line 144 
Line 145 
   
         if (args_has(self->args, 'P') || args_has(self->args, 'g')) {          if (args_has(self->args, 'P') || args_has(self->args, 'g')) {
                 if ((style = args_get(args, 'P')) != NULL) {                  if ((style = args_get(args, 'P')) != NULL) {
                         style_set(sy, &grid_default_cell);                          o = options_set_style(wp->options, "window-style", 0,
                         if (style_parse(sy, &grid_default_cell, style) == -1) {                              style);
                           if (o == NULL) {
                                 cmdq_error(item, "bad style: %s", style);                                  cmdq_error(item, "bad style: %s", style);
                                 return (CMD_RETURN_ERROR);                                  return (CMD_RETURN_ERROR);
                         }                          }
                         wp->flags |= PANE_REDRAW;                          wp->flags |= (PANE_REDRAW|PANE_STYLECHANGED);
                 }                  }
                 if (args_has(self->args, 'g'))                  if (args_has(self->args, 'g')) {
                           sy = options_get_style(wp->options, "window-style");
                         cmdq_print(item, "%s", style_tostring(sy));                          cmdq_print(item, "%s", style_tostring(sy));
                   }
                 return (CMD_RETURN_NORMAL);                  return (CMD_RETURN_NORMAL);
         }          }
   

Legend:
Removed from v.1.50  
changed lines
  Added in v.1.51