diff options
author | nicm <nicm> | 2023-03-27 08:47:57 +0000 |
---|---|---|
committer | nicm <nicm> | 2023-03-27 08:47:57 +0000 |
commit | c21af7e446beafd27a7a0384186bc480fd2e126d (patch) | |
tree | e0b8f94f718c10be87d8f1fd9027ee973956d3f2 /input.c | |
parent | d73078838dc9cadb42e0f4762847806076684cc8 (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.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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); |