[BACK]Return to key-bindings.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / tmux

Diff for /src/usr.bin/tmux/key-bindings.c between version 1.120 and 1.121

version 1.120, 2020/04/13 14:04:25 version 1.121, 2020/04/13 14:46:04
Line 535 
Line 535 
   
 struct cmdq_item *  struct cmdq_item *
 key_bindings_dispatch(struct key_binding *bd, struct cmdq_item *item,  key_bindings_dispatch(struct key_binding *bd, struct cmdq_item *item,
     struct client *c, struct mouse_event *m, struct cmd_find_state *fs)      struct client *c, struct key_event *event, struct cmd_find_state *fs)
 {  {
         struct cmdq_item        *new_item;          struct cmdq_item        *new_item;
         int                      readonly;          int                      readonly, flags = 0;
   
         if (c == NULL || (~c->flags & CLIENT_READONLY))          if (c == NULL || (~c->flags & CLIENT_READONLY))
                 readonly = 1;                  readonly = 1;
Line 547 
Line 547 
         if (!readonly)          if (!readonly)
                 new_item = cmdq_get_callback(key_bindings_read_only, NULL);                  new_item = cmdq_get_callback(key_bindings_read_only, NULL);
         else {          else {
                 new_item = cmdq_get_command(bd->cmdlist, fs, m, 0);  
                 if (bd->flags & KEY_BINDING_REPEAT)                  if (bd->flags & KEY_BINDING_REPEAT)
                         cmdq_get_state(new_item)->flags |= CMDQ_STATE_REPEAT;                          flags |= CMDQ_STATE_REPEAT;
                   new_item = cmdq_get_command(bd->cmdlist, fs, event, flags);
         }          }
         if (item != NULL)          if (item != NULL)
                 new_item = cmdq_insert_after(item, new_item);                  new_item = cmdq_insert_after(item, new_item);

Legend:
Removed from v.1.120  
changed lines
  Added in v.1.121