[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.20 and 1.21

version 1.20, 2014/10/21 22:22:04 version 1.21, 2015/04/19 21:05:27
Line 28 
Line 28 
   
 const struct cmd_entry cmd_select_pane_entry = {  const struct cmd_entry cmd_select_pane_entry = {
         "select-pane", "selectp",          "select-pane", "selectp",
         "DdeLlRt:U", 0, 0,          "DdegLlP:Rt:U", 0, 0,
         "[-DdeLlRU] " CMD_TARGET_PANE_USAGE,          "[-DdegLlRU] [-P style] " CMD_TARGET_PANE_USAGE,
         0,          0,
         cmd_select_pane_exec          cmd_select_pane_exec
 };  };
Line 48 
Line 48 
         struct args             *args = self->args;          struct args             *args = self->args;
         struct winlink          *wl;          struct winlink          *wl;
         struct window_pane      *wp;          struct window_pane      *wp;
           const char              *style;
   
         if (self->entry == &cmd_last_pane_entry || args_has(args, 'l')) {          if (self->entry == &cmd_last_pane_entry || args_has(args, 'l')) {
                 wl = cmd_find_window(cmdq, args_get(args, 't'), NULL);                  wl = cmd_find_window(cmdq, args_get(args, 't'), NULL);
Line 80 
Line 81 
         if (!window_pane_visible(wp)) {          if (!window_pane_visible(wp)) {
                 cmdq_error(cmdq, "pane not visible");                  cmdq_error(cmdq, "pane not visible");
                 return (CMD_RETURN_ERROR);                  return (CMD_RETURN_ERROR);
           }
   
           if (args_has(self->args, 'P') || args_has(self->args, 'g')) {
                   if (args_has(args, 'P')) {
                           style = args_get(args, 'P');
                           if (style_parse(&grid_default_cell, &wp->colgc,
                               style) == -1) {
                                   cmdq_error(cmdq, "bad style: %s", style);
                                   return (CMD_RETURN_ERROR);
                           }
                           wp->flags |= PANE_REDRAW;
                   }
                   if (args_has(self->args, 'g'))
                           cmdq_print(cmdq, "%s", style_tostring(&wp->colgc));
                   return (CMD_RETURN_NORMAL);
         }          }
   
         if (args_has(self->args, 'L'))          if (args_has(self->args, 'L'))

Legend:
Removed from v.1.20  
changed lines
  Added in v.1.21