[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.51 and 1.52

version 1.51, 2019/06/20 11:59:59 version 1.52, 2019/08/14 09:58:31
Line 33 
Line 33 
         .name = "select-pane",          .name = "select-pane",
         .alias = "selectp",          .alias = "selectp",
   
         .args = { "DdegLlMmP:RT:t:U", 0, 0 }, /* -P and -g deprecated */          .args = { "DdegLlMmP:RT:t:UZ", 0, 0 }, /* -P and -g deprecated */
         .usage = "[-DdeLlMmRU] [-T title] " CMD_TARGET_PANE_USAGE,          .usage = "[-DdeLlMmRUZ] [-T title] " CMD_TARGET_PANE_USAGE,
   
         .target = { 't', CMD_FIND_PANE, 0 },          .target = { 't', CMD_FIND_PANE, 0 },
   
Line 46 
Line 46 
         .name = "last-pane",          .name = "last-pane",
         .alias = "lastp",          .alias = "lastp",
   
         .args = { "det:", 0, 0 },          .args = { "det:Z", 0, 0 },
         .usage = "[-de] " CMD_TARGET_WINDOW_USAGE,          .usage = "[-deZ] " CMD_TARGET_WINDOW_USAGE,
   
         .target = { 't', CMD_FIND_WINDOW, 0 },          .target = { 't', CMD_FIND_WINDOW, 0 },
   
Line 111 
Line 111 
                 else if (args_has(self->args, 'd'))                  else if (args_has(self->args, 'd'))
                         lastwp->flags |= PANE_INPUTOFF;                          lastwp->flags |= PANE_INPUTOFF;
                 else {                  else {
                         server_unzoom_window(w);                          if (window_push_zoom(w, args_has(self->args, 'Z')))
                                   server_redraw_window(w);
                         window_redraw_active_switch(w, lastwp);                          window_redraw_active_switch(w, lastwp);
                         if (window_set_active_pane(w, lastwp, 1)) {                          if (window_set_active_pane(w, lastwp, 1)) {
                                 cmd_find_from_winlink(current, wl, 0);                                  cmd_find_from_winlink(current, wl, 0);
                                 cmd_select_pane_redraw(w);                                  cmd_select_pane_redraw(w);
                         }                          }
                           if (window_pop_zoom(w))
                                   server_redraw_window(w);
                 }                  }
                 return (CMD_RETURN_NORMAL);                  return (CMD_RETURN_NORMAL);
         }          }
Line 161 
Line 164 
         }          }
   
         if (args_has(self->args, 'L')) {          if (args_has(self->args, 'L')) {
                 server_unzoom_window(wp->window);                  window_push_zoom(w, 1);
                 wp = window_pane_find_left(wp);                  wp = window_pane_find_left(wp);
                   window_pop_zoom(w);
         } else if (args_has(self->args, 'R')) {          } else if (args_has(self->args, 'R')) {
                 server_unzoom_window(wp->window);                  window_push_zoom(w, 1);
                 wp = window_pane_find_right(wp);                  wp = window_pane_find_right(wp);
                   window_pop_zoom(w);
         } else if (args_has(self->args, 'U')) {          } else if (args_has(self->args, 'U')) {
                 server_unzoom_window(wp->window);                  window_push_zoom(w, 1);
                 wp = window_pane_find_up(wp);                  wp = window_pane_find_up(wp);
                   window_pop_zoom(w);
         } else if (args_has(self->args, 'D')) {          } else if (args_has(self->args, 'D')) {
                 server_unzoom_window(wp->window);                  window_push_zoom(w, 1);
                 wp = window_pane_find_down(wp);                  wp = window_pane_find_down(wp);
                   window_pop_zoom(w);
         }          }
         if (wp == NULL)          if (wp == NULL)
                 return (CMD_RETURN_NORMAL);                  return (CMD_RETURN_NORMAL);
Line 196 
Line 203 
   
         if (wp == w->active)          if (wp == w->active)
                 return (CMD_RETURN_NORMAL);                  return (CMD_RETURN_NORMAL);
         server_unzoom_window(wp->window);          if (window_push_zoom(w, args_has(self->args, 'Z')))
                   server_redraw_window(w);
         window_redraw_active_switch(w, wp);          window_redraw_active_switch(w, wp);
         if (window_set_active_pane(w, wp, 1)) {          if (window_set_active_pane(w, wp, 1)) {
                 cmd_find_from_winlink_pane(current, wl, wp, 0);                  cmd_find_from_winlink_pane(current, wl, wp, 0);
                 cmdq_insert_hook(s, item, current, "after-select-pane");                  cmdq_insert_hook(s, item, current, "after-select-pane");
                 cmd_select_pane_redraw(w);                  cmd_select_pane_redraw(w);
         }          }
           if (window_pop_zoom(w))
                   server_redraw_window(w);
   
         return (CMD_RETURN_NORMAL);          return (CMD_RETURN_NORMAL);
 }  }

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