mirror of
https://github.com/tmux/tmux.git
synced 2025-09-02 05:21:10 +00:00
Redraw any visible modes when status line changes so that formats like
the pane title are updated. GitHub issue 2487. Also a man page fix from jmc.
This commit is contained in:
@ -31,6 +31,7 @@ static struct screen *window_buffer_init(struct window_mode_entry *,
|
||||
static void window_buffer_free(struct window_mode_entry *);
|
||||
static void window_buffer_resize(struct window_mode_entry *, u_int,
|
||||
u_int);
|
||||
static void window_buffer_update(struct window_mode_entry *);
|
||||
static void window_buffer_key(struct window_mode_entry *,
|
||||
struct client *, struct session *,
|
||||
struct winlink *, key_code, struct mouse_event *);
|
||||
@ -63,6 +64,7 @@ const struct window_mode window_buffer_mode = {
|
||||
.init = window_buffer_init,
|
||||
.free = window_buffer_free,
|
||||
.resize = window_buffer_resize,
|
||||
.update = window_buffer_update,
|
||||
.key = window_buffer_key,
|
||||
};
|
||||
|
||||
@ -335,6 +337,16 @@ window_buffer_resize(struct window_mode_entry *wme, u_int sx, u_int sy)
|
||||
mode_tree_resize(data->data, sx, sy);
|
||||
}
|
||||
|
||||
static void
|
||||
window_buffer_update(struct window_mode_entry *wme)
|
||||
{
|
||||
struct window_buffer_modedata *data = wme->data;
|
||||
|
||||
mode_tree_build(data->data);
|
||||
mode_tree_draw(data->data);
|
||||
data->wp->flags |= PANE_REDRAW;
|
||||
}
|
||||
|
||||
static void
|
||||
window_buffer_do_delete(void *modedata, void *itemdata,
|
||||
__unused struct client *c, __unused key_code key)
|
||||
|
Reference in New Issue
Block a user