From 9272fe36e2e36789342337d81914008826499941 Mon Sep 17 00:00:00 2001 From: nicm Date: Tue, 18 Jun 2019 11:08:42 +0000 Subject: Add a cmdq_continue function rather than twiddling the flag directly. --- cmd-display-panes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmd-display-panes.c') diff --git a/cmd-display-panes.c b/cmd-display-panes.c index aeeb6936..aa665f08 100644 --- a/cmd-display-panes.c +++ b/cmd-display-panes.c @@ -188,7 +188,7 @@ cmd_display_panes_free(struct client *c) struct cmd_display_panes_data *cdata = c->overlay_data; if (cdata->item != NULL) - cdata->item->flags &= ~CMDQ_WAITING; + cmdq_continue(cdata->item); free(cdata->command); free(cdata); } -- cgit From 87ea14328ce60fdfb8bd0aef15b7e3b3bdccb1ed Mon Sep 17 00:00:00 2001 From: nicm Date: Wed, 26 Jun 2019 18:28:31 +0000 Subject: Pass keys that aren't 0-9 on to normal key processing when display-panes is active (restores previous behaviour). --- cmd-display-panes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmd-display-panes.c') diff --git a/cmd-display-panes.c b/cmd-display-panes.c index aa665f08..df97819c 100644 --- a/cmd-display-panes.c +++ b/cmd-display-panes.c @@ -204,7 +204,7 @@ cmd_display_panes_key(struct client *c, struct key_event *event) struct cmd_parse_result *pr; if (event->key < '0' || event->key > '9') - return (1); + return (-1); wp = window_pane_at_index(w, event->key - '0'); if (wp == NULL) -- cgit