aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/option.c
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2020-10-31 20:31:42 -0400
committerGitHub <noreply@github.com>2020-10-31 20:31:42 -0400
commitbc68653a869645e45f52edbf296106be5deabf2f (patch)
tree6bf7f626d45c98b267aedf6c21bb64d23ac71479 /src/nvim/option.c
parent98024853f4755f51e82526b45484bae0ec6042ba (diff)
parent10bf69a43e8f58b0d49bc6253e4e2758060670a8 (diff)
downloadrneovim-bc68653a869645e45f52edbf296106be5deabf2f.tar.gz
rneovim-bc68653a869645e45f52edbf296106be5deabf2f.tar.bz2
rneovim-bc68653a869645e45f52edbf296106be5deabf2f.zip
Merge pull request #13167 from romgrk/vim-8.2.1909
vim-patch:8.2.1909: number of status line items is limited to 80
Diffstat (limited to 'src/nvim/option.c')
-rw-r--r--src/nvim/option.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/nvim/option.c b/src/nvim/option.c
index ca902d5669..d5ea358184 100644
--- a/src/nvim/option.c
+++ b/src/nvim/option.c
@@ -3751,11 +3751,10 @@ static char_u *set_chars_option(win_T *wp, char_u **varp, bool set)
/// Return error message or NULL.
char_u *check_stl_option(char_u *s)
{
- int itemcnt = 0;
int groupdepth = 0;
static char_u errbuf[80];
- while (*s && itemcnt < STL_MAX_ITEM) {
+ while (*s) {
// Check for valid keys after % sequences
while (*s && *s != '%') {
s++;
@@ -3764,9 +3763,6 @@ char_u *check_stl_option(char_u *s)
break;
}
s++;
- if (*s != '%' && *s != ')') {
- itemcnt++;
- }
if (*s == '%' || *s == STL_TRUNCMARK || *s == STL_SEPARATE) {
s++;
continue;
@@ -3808,9 +3804,6 @@ char_u *check_stl_option(char_u *s)
}
}
}
- if (itemcnt >= STL_MAX_ITEM) {
- return (char_u *)N_("E541: too many items");
- }
if (groupdepth != 0) {
return (char_u *)N_("E542: unbalanced groups");
}