Use the correct size for new windows when window-size is latest,

reported by Vamsi Krishna Avula in GitHub issue 1917.
This commit is contained in:
nicm
2019-09-23 15:41:11 +00:00
parent 647887b794
commit 77deef733b
4 changed files with 52 additions and 25 deletions

4
tmux.h
View File

@ -2196,8 +2196,8 @@ void status_prompt_save_history(void);
/* resize.c */
void resize_window(struct window *, u_int, u_int);
void default_window_size(struct session *, struct window *, u_int *,
u_int *, int);
void default_window_size(struct client *, struct session *, struct window *,
u_int *, u_int *, int);
void recalculate_size(struct window *);
void recalculate_sizes(void);