mirror of
https://github.com/neovim/neovim.git
synced 2025-12-15 19:05:40 +00:00
fix(ui): set stc to empty in floatwin with minimal style (#21720)
fix(ui): set stc to emtpy in floatwin with minimal style
This commit is contained in:
@@ -1329,6 +1329,54 @@ describe('float window', function()
|
||||
end
|
||||
end)
|
||||
|
||||
it("would not break 'minimal' style with statuscolumn set", function()
|
||||
command('set number')
|
||||
command('set signcolumn=yes')
|
||||
command('set colorcolumn=1')
|
||||
command('set cursorline')
|
||||
command('set foldcolumn=1')
|
||||
command('set statuscolumn=%l%s%C')
|
||||
command('hi NormalFloat guibg=#333333')
|
||||
feed('ix<cr>y<cr><esc>gg')
|
||||
meths.open_win(0, false, {relative='editor', width=20, height=4, row=4, col=10, style='minimal'})
|
||||
if multigrid then
|
||||
screen:expect{grid=[[
|
||||
## grid 1
|
||||
[2:----------------------------------------]|
|
||||
[2:----------------------------------------]|
|
||||
[2:----------------------------------------]|
|
||||
[2:----------------------------------------]|
|
||||
[2:----------------------------------------]|
|
||||
[2:----------------------------------------]|
|
||||
[3:----------------------------------------]|
|
||||
## grid 2
|
||||
{20:1}{21: }{19: }{20: }{22:^x}{21: }|
|
||||
{14:2 }{19: }{14: }{22:y} |
|
||||
{14:3 }{19: }{14: }{22: } |
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
## grid 3
|
||||
|
|
||||
## grid 4
|
||||
{15:x }|
|
||||
{15:y }|
|
||||
{15: }|
|
||||
{15: }|
|
||||
]], float_pos={[4] = {{id = 1001}, "NW", 1, 4, 10, true}}}
|
||||
else
|
||||
screen:expect{grid=[[
|
||||
{20:1}{21: }{19: }{20: }{22:^x}{21: }|
|
||||
{14:2 }{19: }{14: }{22:y} |
|
||||
{14:3 }{19: }{14: }{22: } {15:x } |
|
||||
{0:~ }{15:y }{0: }|
|
||||
{0:~ }{15: }{0: }|
|
||||
{0:~ }{15: }{0: }|
|
||||
|
|
||||
]]}
|
||||
end
|
||||
end)
|
||||
|
||||
it('can have border', function()
|
||||
local buf = meths.create_buf(false, false)
|
||||
meths.buf_set_lines(buf, 0, -1, true, {' halloj! ',
|
||||
|
||||
Reference in New Issue
Block a user