[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.24 and 1.25

version 1.24, 2015/06/04 11:43:51 version 1.25, 2015/09/14 11:34:50
Line 47 
Line 47 
 {  {
         struct args             *args = self->args;          struct args             *args = self->args;
         struct winlink          *wl;          struct winlink          *wl;
           struct window           *w;
         struct session          *s;          struct session          *s;
         struct window_pane      *wp, *lastwp, *markedwp;          struct window_pane      *wp, *lastwp, *markedwp;
         const char              *style;          const char              *style;
Line 55 
Line 56 
                 wl = cmd_find_window(cmdq, args_get(args, 't'), NULL);                  wl = cmd_find_window(cmdq, args_get(args, 't'), NULL);
                 if (wl == NULL)                  if (wl == NULL)
                         return (CMD_RETURN_ERROR);                          return (CMD_RETURN_ERROR);
                   w = wl->window;
   
                 if (wl->window->last == NULL) {                  if (w->last == NULL) {
                         cmdq_error(cmdq, "no last pane");                          cmdq_error(cmdq, "no last pane");
                         return (CMD_RETURN_ERROR);                          return (CMD_RETURN_ERROR);
                 }                  }
   
                 if (args_has(self->args, 'e'))                  if (args_has(self->args, 'e'))
                         wl->window->last->flags &= ~PANE_INPUTOFF;                          w->last->flags &= ~PANE_INPUTOFF;
                 else if (args_has(self->args, 'd'))                  else if (args_has(self->args, 'd'))
                         wl->window->last->flags |= PANE_INPUTOFF;                          w->last->flags |= PANE_INPUTOFF;
                 else {                  else {
                         server_unzoom_window(wl->window);                          server_unzoom_window(w);
                         window_set_active_pane(wl->window, wl->window->last);                          window_redraw_active_switch(w, w->last);
                         server_status_window(wl->window);                          if (window_set_active_pane(w, w->last)) {
                         server_redraw_window_borders(wl->window);                                  server_status_window(w);
                                   server_redraw_window_borders(w);
                           }
                 }                  }
   
                 return (CMD_RETURN_NORMAL);                  return (CMD_RETURN_NORMAL);
Line 77 
Line 81 
   
         if ((wl = cmd_find_pane(cmdq, args_get(args, 't'), &s, &wp)) == NULL)          if ((wl = cmd_find_pane(cmdq, args_get(args, 't'), &s, &wp)) == NULL)
                 return (CMD_RETURN_ERROR);                  return (CMD_RETURN_ERROR);
           w = wl->window;
   
         if (args_has(args, 'm') || args_has(args, 'M')) {          if (args_has(args, 'm') || args_has(args, 'M')) {
                 if (args_has(args, 'm') && !window_pane_visible(wp))                  if (args_has(args, 'm') && !window_pane_visible(wp))
Line 135 
Line 140 
                 return (CMD_RETURN_NORMAL);                  return (CMD_RETURN_NORMAL);
         }          }
   
         if (wp == wl->window->active)          if (wp == w->active)
                 return (CMD_RETURN_NORMAL);                  return (CMD_RETURN_NORMAL);
         server_unzoom_window(wp->window);          server_unzoom_window(wp->window);
         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 (window_set_active_pane(wl->window, wp)) {          window_redraw_active_switch(w, wp);
                 server_status_window(wl->window);          if (window_set_active_pane(w, wp)) {
                 server_redraw_window_borders(wl->window);                  server_status_window(w);
                   server_redraw_window_borders(w);
         }          }
   
         return (CMD_RETURN_NORMAL);          return (CMD_RETURN_NORMAL);

Legend:
Removed from v.1.24  
changed lines
  Added in v.1.25