mirror of
https://github.com/neovim/neovim.git
synced 2025-12-15 19:05:40 +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:
@@ -216,6 +216,22 @@ describe('cmdline', function()
|
||||
longish |
|
||||
]]
|
||||
end)
|
||||
|
||||
-- oldtest: Test_rulerformat_function()
|
||||
it("'rulerformat' can use %!", function()
|
||||
local screen = Screen.new(40, 2)
|
||||
exec([[
|
||||
func TestRulerFn()
|
||||
return '10,20%=30%%'
|
||||
endfunc
|
||||
]])
|
||||
api.nvim_set_option_value('ruler', true, {})
|
||||
api.nvim_set_option_value('rulerformat', '%!TestRulerFn()', {})
|
||||
screen:expect([[
|
||||
^ |
|
||||
10,20 30% |
|
||||
]])
|
||||
end)
|
||||
end)
|
||||
|
||||
describe('cmdwin', function()
|
||||
|
||||
Reference in New Issue
Block a user