mirror of
https://github.com/neovim/neovim.git
synced 2025-09-27 13:38:34 +00:00
vim-patch:9.1.0890: %! item not allowed for 'rulerformat' (#31369)
Problem: %! item not allowed for 'rulerformat'
(yatinlala)
Solution: also allow to use %! for rulerformat option
(Yegappan Lakshmanan)
fixes: vim/vim#16091
closes: vim/vim#16118
ac023e8baa
Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
This commit is contained in:
@@ -2191,7 +2191,11 @@ static const char *did_set_statustabline_rulerformat(optset_T *args, bool rulerf
|
||||
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);
|
||||
}
|
||||
}
|
||||
} else if (rulerformat || s[0] != '%' || s[1] != '!') {
|
||||
// check 'statusline', 'winbar', 'tabline' or 'statuscolumn'
|
||||
|
Reference in New Issue
Block a user