mirror of
https://github.com/tmux/tmux.git
synced 2025-09-01 20:57:00 +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:
@ -29,6 +29,7 @@ static struct screen *window_tree_init(struct window_mode_entry *,
|
||||
static void window_tree_free(struct window_mode_entry *);
|
||||
static void window_tree_resize(struct window_mode_entry *, u_int,
|
||||
u_int);
|
||||
static void window_tree_update(struct window_mode_entry *);
|
||||
static void window_tree_key(struct window_mode_entry *,
|
||||
struct client *, struct session *,
|
||||
struct winlink *, key_code, struct mouse_event *);
|
||||
@ -79,6 +80,7 @@ const struct window_mode window_tree_mode = {
|
||||
.init = window_tree_init,
|
||||
.free = window_tree_free,
|
||||
.resize = window_tree_resize,
|
||||
.update = window_tree_update,
|
||||
.key = window_tree_key,
|
||||
};
|
||||
|
||||
@ -937,6 +939,16 @@ window_tree_resize(struct window_mode_entry *wme, u_int sx, u_int sy)
|
||||
mode_tree_resize(data->data, sx, sy);
|
||||
}
|
||||
|
||||
static void
|
||||
window_tree_update(struct window_mode_entry *wme)
|
||||
{
|
||||
struct window_tree_modedata *data = wme->data;
|
||||
|
||||
mode_tree_build(data->data);
|
||||
mode_tree_draw(data->data);
|
||||
data->wp->flags |= PANE_REDRAW;
|
||||
}
|
||||
|
||||
static char *
|
||||
window_tree_get_target(struct window_tree_itemdata *item,
|
||||
struct cmd_find_state *fs)
|
||||
|
Reference in New Issue
Block a user