diff --git a/cmd-select-pane.c b/cmd-select-pane.c index 5cec82f2..90ca46ba 100644 --- a/cmd-select-pane.c +++ b/cmd-select-pane.c @@ -119,7 +119,7 @@ cmd_select_pane_exec(struct cmd *self, struct cmdq_item *item) } if (args_has(args, 'm') || args_has(args, 'M')) { - if (args_has(args, 'm')) + if (args_has(args, 'm') && !window_pane_visible(wp)) return (CMD_RETURN_NORMAL); lastwp = marked_pane.wp;