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

Diff for /src/usr.bin/tmux/cmd-copy-mode.c between version 1.40 and 1.41

version 1.40, 2020/03/20 17:59:39 version 1.41, 2020/04/10 07:44:26
Line 30 
Line 30 
         .name = "copy-mode",          .name = "copy-mode",
         .alias = NULL,          .alias = NULL,
   
         .args = { "eHMt:uq", 0, 0 },          .args = { "eHMs:t:uq", 0, 0 },
         .usage = "[-eHMuq] " CMD_TARGET_PANE_USAGE,          .usage = "[-eHMuq] [-s src-pane] " CMD_TARGET_PANE_USAGE,
   
           .source =  { 's', CMD_FIND_PANE, 0 },
         .target = { 't', CMD_FIND_PANE, 0 },          .target = { 't', CMD_FIND_PANE, 0 },
   
         .flags = CMD_AFTERHOOK,          .flags = CMD_AFTERHOOK,
Line 59 
Line 60 
         struct cmdq_shared      *shared = item->shared;          struct cmdq_shared      *shared = item->shared;
         struct client           *c = item->client;          struct client           *c = item->client;
         struct session          *s;          struct session          *s;
         struct window_pane      *wp = item->target.wp;          struct window_pane      *wp = item->target.wp, *swp;
   
         if (args_has(args, 'q')) {          if (args_has(args, 'q')) {
                 window_pane_reset_mode_all(wp);                  window_pane_reset_mode_all(wp);
Line 74 
Line 75 
         }          }
   
         if (self->entry == &cmd_clock_mode_entry) {          if (self->entry == &cmd_clock_mode_entry) {
                 window_pane_set_mode(wp, &window_clock_mode, NULL, NULL);                  window_pane_set_mode(wp, NULL, &window_clock_mode, NULL, NULL);
                 return (CMD_RETURN_NORMAL);                  return (CMD_RETURN_NORMAL);
         }          }
   
         if (!window_pane_set_mode(wp, &window_copy_mode, NULL, args)) {          if (args_has(args, 's'))
                   swp = item->source.wp;
           else
                   swp = wp;
           if (!window_pane_set_mode(wp, swp, &window_copy_mode, NULL, args)) {
                 if (args_has(args, 'M'))                  if (args_has(args, 'M'))
                         window_copy_start_drag(c, &shared->mouse);                          window_copy_start_drag(c, &shared->mouse);
         }          }

Legend:
Removed from v.1.40  
changed lines
  Added in v.1.41