summaryrefslogtreecommitdiffstats
path: root/input.c
diff options
context:
space:
mode:
authornicm <nicm>2023-03-27 08:47:57 +0000
committernicm <nicm>2023-03-27 08:47:57 +0000
commitc21af7e446beafd27a7a0384186bc480fd2e126d (patch)
treee0b8f94f718c10be87d8f1fd9027ee973956d3f2 /input.c
parentd73078838dc9cadb42e0f4762847806076684cc8 (diff)
Add a format to show if there are unseen changes while in a mode, from
Dan Aloni in GitHub issue 3498.
Diffstat (limited to 'input.c')
-rw-r--r--input.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/input.c b/input.c
index adbea179..5a14104b 100644
--- a/input.c
+++ b/input.c
@@ -971,6 +971,10 @@ input_parse_buffer(struct window_pane *wp, u_char *buf, size_t len)
window_update_activity(wp->window);
wp->flags |= PANE_CHANGED;
+ /* Flag new input while in a mode. */
+ if (!TAILQ_EMPTY(&wp->modes))
+ wp->flags |= PANE_UNSEENCHANGES;
+
/* NULL wp if there is a mode set as don't want to update the tty. */
if (TAILQ_EMPTY(&wp->modes))
screen_write_start_pane(sctx, wp, &wp->base);