forked from aniani/vim
patch 9.1.0890: %! item not allowed for 'rulerformat'
Problem: %! item not allowed for 'rulerformat'
(yatinlala)
Solution: also allow to use %! for rulerformat option
(Yegappan Lakshmanan)
fixes: #16091
closes: #16118
Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
7e501f4d99
commit
ac023e8baa
@@ -3330,7 +3330,12 @@ parse_statustabline_rulerformat(optset_T *args, int rulerformat)
|
||||
if (wid && *s == '(' && (errmsg = check_stl_option(p_ruf)) == NULL)
|
||||
ru_wid = wid;
|
||||
else
|
||||
errmsg = check_stl_option(p_ruf);
|
||||
{
|
||||
// Validate the flags in 'rulerformat' only if it doesn't point to
|
||||
// a custom function ("%!" flag).
|
||||
if ((*varp)[1] != '!')
|
||||
errmsg = check_stl_option(p_ruf);
|
||||
}
|
||||
}
|
||||
// check 'statusline' or 'tabline' only if it doesn't start with "%!"
|
||||
else if (rulerformat || s[0] != '%' || s[1] != '!')
|
||||
|
||||
Reference in New Issue
Block a user