mirror of
https://github.com/tmux/tmux.git
synced 2025-09-01 04:27:00 +00:00
Only set up a current target for mouse key bindings. Fixes:
bind q select-pane -U \; resize-pane -Z (There is still some possible weirdness with the way we do current targets, it should probably be done in a different way at some point.)
This commit is contained in:
@ -940,8 +940,8 @@ retry:
|
|||||||
server_status_client(c);
|
server_status_client(c);
|
||||||
|
|
||||||
/* Find default state if the pane is known. */
|
/* Find default state if the pane is known. */
|
||||||
cmd_find_clear_state(&fs, NULL, 0);
|
if (KEYC_IS_MOUSE(key) && m->valid && wp != NULL) {
|
||||||
if (wp != NULL) {
|
cmd_find_clear_state(&fs, NULL, 0);
|
||||||
fs.s = s;
|
fs.s = s;
|
||||||
fs.wl = fs.s->curw;
|
fs.wl = fs.s->curw;
|
||||||
fs.w = fs.wl->window;
|
fs.w = fs.wl->window;
|
||||||
@ -950,10 +950,9 @@ retry:
|
|||||||
|
|
||||||
if (!cmd_find_valid_state(&fs))
|
if (!cmd_find_valid_state(&fs))
|
||||||
fatalx("invalid key state");
|
fatalx("invalid key state");
|
||||||
}
|
key_bindings_dispatch(bd, c, m, &fs);
|
||||||
|
} else
|
||||||
/* Dispatch the key binding. */
|
key_bindings_dispatch(bd, c, m, NULL);
|
||||||
key_bindings_dispatch(bd, c, m, &fs);
|
|
||||||
key_bindings_unref_table(table);
|
key_bindings_unref_table(table);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user