Fix how popup height is calculated to take embedded newlines into account.

This commit is contained in:
nicm
2020-03-28 09:39:44 +00:00
parent e0b17e796b
commit 4346098e97
3 changed files with 23 additions and 4 deletions

1
tmux.h
View File

@ -2763,6 +2763,7 @@ int menu_display(struct menu *, int, struct cmdq_item *, u_int,
#define POPUP_CLOSEEXIT 0x2
u_int popup_width(struct cmdq_item *, u_int, const char **,
struct client *, struct cmd_find_state *);
u_int popup_height(u_int, const char **);
int popup_display(int, struct cmdq_item *, u_int, u_int, u_int,
u_int, u_int, const char **, const char *, const char *,
const char *, struct client *, struct cmd_find_state *);