mirror of
https://github.com/neovim/neovim.git
synced 2025-12-24 07:09:05 +00:00
vim-patch:9.0.0661: multi-byte "lastline" in 'fillchars' does not work properly
Problem: Multi-byte "lastline" item in 'fillchars' does not work properly
when the window is two columns wide.
Solution: Compute the text length correctly. (closes vim/vim#11280)
18b3500b8c
This commit is contained in:
@@ -435,6 +435,10 @@ func Run_Test_display_lastline(euro)
|
||||
call term_sendkeys(buf, ":3split\<CR>")
|
||||
call VerifyScreenDump(buf, $'Test_display_lastline_{a:euro}5', {})
|
||||
|
||||
call term_sendkeys(buf, ":close\<CR>")
|
||||
call term_sendkeys(buf, ":2vsplit\<CR>")
|
||||
call VerifyScreenDump(buf, $'Test_display_lastline_{a:euro}6', {})
|
||||
|
||||
call StopVimInTerminal(buf)
|
||||
endfunc
|
||||
|
||||
|
||||
@@ -125,6 +125,21 @@ describe('display', function()
|
||||
{3:[No Name] [+] }|
|
||||
|
|
||||
]]):gsub('@', fillchar)))
|
||||
|
||||
command('close')
|
||||
command('2vsplit')
|
||||
screen:expect((([[
|
||||
^aa│aaa |
|
||||
a │bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb|
|
||||
bb│bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb|
|
||||
bb│bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb |
|
||||
bb│{1:~ }|
|
||||
bb│{1:~ }|
|
||||
bb│{1:~ }|
|
||||
{1:@@}│{1:~ }|
|
||||
{2:< }{3:[No Name] [+] }|
|
||||
|
|
||||
]]):gsub('@', fillchar)))
|
||||
end
|
||||
|
||||
-- oldtest: Test_display_lastline()
|
||||
|
||||
Reference in New Issue
Block a user