diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2018-12-05 11:54:46 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-05 11:54:46 +0100 |
commit | 77b5e9ae25fc79cd647ed6a0535b234bcc82180d (patch) | |
tree | dae05d5e1a32d74a25aa6699ace8dd13d60681f8 /test/functional/ui/screen_basic_spec.lua | |
parent | e509576e531acf6a97ef5b471e25bbe8c77414a8 (diff) | |
parent | f1ce9b3be2ea1e9e1dc5c6206bc441b310feb28b (diff) | |
download | rneovim-77b5e9ae25fc79cd647ed6a0535b234bcc82180d.tar.gz rneovim-77b5e9ae25fc79cd647ed6a0535b234bcc82180d.tar.bz2 rneovim-77b5e9ae25fc79cd647ed6a0535b234bcc82180d.zip |
Merge pull request #9315 from bfredl/clear_status
screen: add missing status redraw when <c-l> was used
Diffstat (limited to 'test/functional/ui/screen_basic_spec.lua')
-rw-r--r-- | test/functional/ui/screen_basic_spec.lua | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/test/functional/ui/screen_basic_spec.lua b/test/functional/ui/screen_basic_spec.lua index 1a8b7d543a..04d532f6e1 100644 --- a/test/functional/ui/screen_basic_spec.lua +++ b/test/functional/ui/screen_basic_spec.lua @@ -156,6 +156,82 @@ local function screen_tests(linegrid) 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('split', function() it('horizontal', function() |