summaryrefslogtreecommitdiffstats
path: root/cmd-queue.c
diff options
context:
space:
mode:
Diffstat (limited to 'cmd-queue.c')
-rw-r--r--cmd-queue.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd-queue.c b/cmd-queue.c
index 6bc6d0d2..5620fdad 100644
--- a/cmd-queue.c
+++ b/cmd-queue.c
@@ -809,7 +809,7 @@ cmdq_print(struct cmdq_item *item, const char *fmt, ...)
}
file_print(c, "%s\n", msg);
} else {
- wp = c->session->curw->window->active;
+ wp = server_client_get_pane(c);
wme = TAILQ_FIRST(&wp->modes);
if (wme == NULL || wme->mode != &window_view_mode) {
window_pane_set_mode(wp, NULL, &window_view_mode, NULL,