Extend pane lookup special case for switch-client to mouse target ("=")

so that it works for panes on status line.
This commit is contained in:
nicm
2025-08-22 07:42:51 +00:00
parent e6d275b371
commit 7325da3052

View File

@ -61,7 +61,8 @@ cmd_switch_client_exec(struct cmd *self, struct cmdq_item *item)
const char *tablename;
struct key_table *table;
if (tflag != NULL && tflag[strcspn(tflag, ":.%")] != '\0') {
if (tflag != NULL &&
(tflag[strcspn(tflag, ":.%")] != '\0' || strcmp(tflag, "=") == 0)) {
type = CMD_FIND_PANE;
flags = 0;
} else {