mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -04:00
patch 8.2.2854: custom statusline cannot contain % items
Problem: Custom statusline cannot contain % items. Solution: Add "%{% expr %}". (closes #8190)
This commit is contained in:
committed by
Bram Moolenaar
parent
d832c3c56e
commit
30e3de21fc
@@ -618,8 +618,10 @@ check_stl_option(char_u *s)
|
||||
}
|
||||
if (*s == '{')
|
||||
{
|
||||
int reevaluate = (*s == '%');
|
||||
|
||||
s++;
|
||||
while (*s != '}' && *s)
|
||||
while ((*s != '}' || (reevaluate && s[-1] != '%')) && *s)
|
||||
s++;
|
||||
if (*s != '}')
|
||||
return N_("E540: Unclosed expression sequence");
|
||||
|
Reference in New Issue
Block a user