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:
Yegappan Lakshmanan
2024-11-27 20:55:45 +01:00
committed by Christian Brabandt
parent 7e501f4d99
commit ac023e8baa
7 changed files with 37 additions and 3 deletions

View File

@ -1,4 +1,4 @@
*options.txt* For Vim version 9.1. Last change: 2024 Nov 24
*options.txt* For Vim version 9.1. Last change: 2024 Nov 27
VIM REFERENCE MANUAL by Bram Moolenaar
@ -7870,6 +7870,7 @@ A jump table for the options with a short description can be found at |Q_op|.
All fields except the {item} are optional. A single percent sign can
be given as "%%".
*stl-%!*
When the option starts with "%!" then it is used as an expression,
evaluated and the result is used as the option value. Example: >
:set statusline=%!MyStatusLine()

View File

@ -10222,6 +10222,7 @@ state() builtin.txt /*state()*
static-tag tagsrch.txt /*static-tag*
status-line windows.txt /*status-line*
statusmsg-variable eval.txt /*statusmsg-variable*
stl-%! options.txt /*stl-%!*
stl-%{ options.txt /*stl-%{*
str2float() builtin.txt /*str2float()*
str2list() builtin.txt /*str2list()*

View File

@ -1,4 +1,4 @@
*version9.txt* For Vim version 9.1. Last change: 2024 Nov 14
*version9.txt* For Vim version 9.1. Last change: 2024 Nov 27
VIM REFERENCE MANUAL by Bram Moolenaar
@ -41607,6 +41607,8 @@ Changed~
started via |:Tutor|
- improve the |vimtutor| and add a second chapter for more advanced tips
- allow to pass local Vim script variables to python interpreter |py3eval()|
- |getwininfo()| now also returns the "leftcol" property for a window
- 'rulerformat' now supports the |stl-%!| item
*added-9.2*
Added ~