[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.59 and 1.60

version 1.59, 2020/04/13 20:51:57 version 1.60, 2020/05/16 15:01:31
Line 91 
Line 91 
         struct window           *w = wl->window;          struct window           *w = wl->window;
         struct session          *s = target->s;          struct session          *s = target->s;
         struct window_pane      *wp = target->wp, *lastwp, *markedwp;          struct window_pane      *wp = target->wp, *lastwp, *markedwp;
           struct options          *oo = wp->options;
         char                    *title;          char                    *title;
         const char              *style;          const char              *style;
         struct style            *sy;  
         struct options_entry    *o;          struct options_entry    *o;
   
         if (entry == &cmd_last_pane_entry || args_has(args, 'l')) {          if (entry == &cmd_last_pane_entry || args_has(args, 'l')) {
Line 147 
Line 147 
                 return (CMD_RETURN_NORMAL);                  return (CMD_RETURN_NORMAL);
         }          }
   
         if (args_has(args, 'P') || args_has(args, 'g')) {          style = args_get(args, 'P');
                 if ((style = args_get(args, 'P')) != NULL) {          if (style != NULL) {
                         o = options_set_style(wp->options, "window-style", 0,                  o = options_set_string(oo, "window-style", 0, "%s", style);
                             style);                  if (o == NULL) {
                         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);  
                         }  
                         options_set_style(wp->options, "window-active-style", 0,  
                             style);  
                         wp->flags |= (PANE_REDRAW|PANE_STYLECHANGED);  
                 }                  }
                 if (args_has(args, 'g')) {                  options_set_string(oo, "window-active-style", 0, "%s", style);
                         sy = options_get_style(wp->options, "window-style");                  wp->flags |= (PANE_REDRAW|PANE_STYLECHANGED);
                         cmdq_print(item, "%s", style_tostring(sy));          }
                 }          if (args_has(args, 'g')) {
                   cmdq_print(item, "%s", options_get_string(oo, "window-style"));
                 return (CMD_RETURN_NORMAL);                  return (CMD_RETURN_NORMAL);
         }          }
   
Line 197 
Line 193 
   
         if (args_has(args, 'T')) {          if (args_has(args, 'T')) {
                 title = format_single_from_target(item, args_get(args, 'T'));                  title = format_single_from_target(item, args_get(args, 'T'));
                 if (screen_set_title(&wp->base, title))                  if (screen_set_title(&wp->base, title)) {
                           server_redraw_window_borders(wp->window);
                         server_status_window(wp->window);                          server_status_window(wp->window);
                   }
                 free(title);                  free(title);
                 return (CMD_RETURN_NORMAL);                  return (CMD_RETURN_NORMAL);
         }          }

Legend:
Removed from v.1.59  
changed lines
  Added in v.1.60