[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.45 and 1.46

version 1.45, 2020/04/13 14:04:25 version 1.46, 2020/04/13 14:46:04
Line 57 
Line 57 
 cmd_copy_mode_exec(struct cmd *self, struct cmdq_item *item)  cmd_copy_mode_exec(struct cmd *self, struct cmdq_item *item)
 {  {
         struct args             *args = cmd_get_args(self);          struct args             *args = cmd_get_args(self);
         struct cmdq_state       *state = cmdq_get_state(item);          struct key_event        *event = cmdq_get_event(item);
         struct cmd_find_state   *source = cmdq_get_source(item);          struct cmd_find_state   *source = cmdq_get_source(item);
         struct cmd_find_state   *target = cmdq_get_target(item);          struct cmd_find_state   *target = cmdq_get_target(item);
         struct client           *c = cmdq_get_client(item);          struct client           *c = cmdq_get_client(item);
Line 70 
Line 70 
         }          }
   
         if (args_has(args, 'M')) {          if (args_has(args, 'M')) {
                 if ((wp = cmd_mouse_pane(&state->event.m, &s, NULL)) == NULL)                  if ((wp = cmd_mouse_pane(&event->m, &s, NULL)) == NULL)
                         return (CMD_RETURN_NORMAL);                          return (CMD_RETURN_NORMAL);
                 if (c == NULL || c->session != s)                  if (c == NULL || c->session != s)
                         return (CMD_RETURN_NORMAL);                          return (CMD_RETURN_NORMAL);
Line 87 
Line 87 
                 swp = wp;                  swp = wp;
         if (!window_pane_set_mode(wp, swp, &window_copy_mode, NULL, args)) {          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, &state->event.m);                          window_copy_start_drag(c, &event->m);
         }          }
         if (args_has(args, 'u'))          if (args_has(args, 'u'))
                 window_copy_pageup(wp, 0);                  window_copy_pageup(wp, 0);

Legend:
Removed from v.1.45  
changed lines
  Added in v.1.46