There is no real need for window_printable_flags to allocate, make it

return a buffer from the stack.
This commit is contained in:
nicm
2017-04-20 09:39:07 +00:00
parent 0b44ad99b5
commit 0f25ad3ca3
3 changed files with 6 additions and 11 deletions

2
tmux.h
View File

@ -2120,7 +2120,7 @@ int window_pane_outside(struct window_pane *);
int window_pane_visible(struct window_pane *);
char *window_pane_search(struct window_pane *, const char *,
u_int *);
char *window_printable_flags(struct session *, struct winlink *);
const char *window_printable_flags(struct session *, struct winlink *);
struct window_pane *window_pane_find_up(struct window_pane *);
struct window_pane *window_pane_find_down(struct window_pane *);
struct window_pane *window_pane_find_left(struct window_pane *);