=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/key-bindings.c,v retrieving revision 1.120 retrieving revision 1.121 diff -c -r1.120 -r1.121 *** src/usr.bin/tmux/key-bindings.c 2020/04/13 14:04:25 1.120 --- src/usr.bin/tmux/key-bindings.c 2020/04/13 14:46:04 1.121 *************** *** 1,4 **** ! /* $OpenBSD: key-bindings.c,v 1.120 2020/04/13 14:04:25 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott --- 1,4 ---- ! /* $OpenBSD: key-bindings.c,v 1.121 2020/04/13 14:46:04 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott *************** *** 535,544 **** struct cmdq_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 cmdq_item *new_item; ! int readonly; if (c == NULL || (~c->flags & CLIENT_READONLY)) readonly = 1; --- 535,544 ---- struct cmdq_item * key_bindings_dispatch(struct key_binding *bd, struct cmdq_item *item, ! struct client *c, struct key_event *event, struct cmd_find_state *fs) { struct cmdq_item *new_item; ! int readonly, flags = 0; if (c == NULL || (~c->flags & CLIENT_READONLY)) readonly = 1; *************** *** 547,555 **** if (!readonly) new_item = cmdq_get_callback(key_bindings_read_only, NULL); else { - new_item = cmdq_get_command(bd->cmdlist, fs, m, 0); if (bd->flags & KEY_BINDING_REPEAT) ! cmdq_get_state(new_item)->flags |= CMDQ_STATE_REPEAT; } if (item != NULL) new_item = cmdq_insert_after(item, new_item); --- 547,555 ---- if (!readonly) new_item = cmdq_get_callback(key_bindings_read_only, NULL); else { if (bd->flags & KEY_BINDING_REPEAT) ! flags |= CMDQ_STATE_REPEAT; ! new_item = cmdq_get_command(bd->cmdlist, fs, event, flags); } if (item != NULL) new_item = cmdq_insert_after(item, new_item);