Merge pull request #9315 from bfredl/clear_status

screen: add missing status redraw when <c-l> was used
This commit is contained in:
Björn Linse 2018-12-05 11:54:46 +01:00 committed by GitHub
commit 77b5e9ae25
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 78 additions and 2 deletions

View File

@ -669,8 +669,8 @@ static void win_update(win_T *wp)
type = wp->w_redr_type; type = wp->w_redr_type;
if (type == NOT_VALID) { if (type >= NOT_VALID) {
wp->w_redr_status = TRUE; wp->w_redr_status = true;
wp->w_lines_valid = 0; wp->w_lines_valid = 0;
} }

View File

@ -156,6 +156,82 @@ local function screen_tests(linegrid)
end) end)
end) end)
describe('statusline', function()
it('is redrawn after <c-l>', function()
command('set laststatus=2')
screen:expect([[
^ |
{0:~ }|
{0:~ }|
{0:~ }|
{0:~ }|
{0:~ }|
{0:~ }|
{0:~ }|
{0:~ }|
{0:~ }|
{0:~ }|
{0:~ }|
{1:[No Name] }|
|
]])
feed('<c-l>')
screen:expect{grid=[[
^ |
{0:~ }|
{0:~ }|
{0:~ }|
{0:~ }|
{0:~ }|
{0:~ }|
{0:~ }|
{0:~ }|
{0:~ }|
{0:~ }|
{0:~ }|
{1:[No Name] }|
|
]], reset=true}
command('split')
screen:expect([[
^ |
{0:~ }|
{0:~ }|
{0:~ }|
{0:~ }|
{0:~ }|
{1:[No Name] }|
|
{0:~ }|
{0:~ }|
{0:~ }|
{0:~ }|
{3:[No Name] }|
|
]])
feed('<c-l>')
screen:expect{grid=[[
^ |
{0:~ }|
{0:~ }|
{0:~ }|
{0:~ }|
{0:~ }|
{1:[No Name] }|
|
{0:~ }|
{0:~ }|
{0:~ }|
{0:~ }|
{3:[No Name] }|
|
]], reset=true}
end)
end)
describe('window', function() describe('window', function()
describe('split', function() describe('split', function()
it('horizontal', function() it('horizontal', function()