Fix select-pane -m, GitHub issuie 1490.

This commit is contained in:
Nicholas Marriott 2018-09-28 09:38:22 +01:00
parent a00cdcdfcb
commit 8053b65f1e

View File

@ -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;