summaryrefslogtreecommitdiff
path: root/src/screen.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-10-26 21:05:27 +0100
committerBram Moolenaar <Bram@vim.org>2020-10-26 21:05:27 +0100
commit8133cc6bf454eb90bb0868f7cf806fce5c0c9fe6 (patch)
treebfb32937e3b811412be16b24058e03840e94cc78 /src/screen.c
parentc8970b94645d0730f4a7cc42388ff32665398e8b (diff)
downloadvim-git-8133cc6bf454eb90bb0868f7cf806fce5c0c9fe6.tar.gz
patch 8.2.1909: number of status line items is limited to 80v8.2.1909
Problem: Number of status line items is limited to 80. Solution: Dynamically allocate the arrays. (Rom Grk, closes #7181)
Diffstat (limited to 'src/screen.c')
-rw-r--r--src/screen.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/screen.c b/src/screen.c
index 233d6a585..0b117cd84 100644
--- a/src/screen.c
+++ b/src/screen.c
@@ -1196,8 +1196,8 @@ win_redr_custom(
char_u buf[MAXPATHL];
char_u *stl;
char_u *p;
- struct stl_hlrec hltab[STL_MAX_ITEM];
- struct stl_hlrec tabtab[STL_MAX_ITEM];
+ stl_hlrec_T *hltab;
+ stl_hlrec_T *tabtab;
int use_sandbox = FALSE;
win_T *ewp;
int p_crb_save;
@@ -1287,7 +1287,7 @@ win_redr_custom(
stl = vim_strsave(stl);
width = build_stl_str_hl(ewp, buf, sizeof(buf),
stl, use_sandbox,
- fillchar, maxwidth, hltab, tabtab);
+ fillchar, maxwidth, &hltab, &tabtab);
vim_free(stl);
ewp->w_p_crb = p_crb_save;