mirror of
https://github.com/neovim/neovim.git
synced 2025-10-26 12:27:24 +00:00
fix(tui): grid_clear properly clears the screen
Problem: When setting a shell size smaller than the containing
terminal window through `:winsize` or `:set lines/columns`
the screen is not properly cleared.
Solution: Clear the tui dimensions rather than the grid dimensions.
This commit is contained in:
@@ -66,10 +66,10 @@ describe('api', function()
|
||||
|
||||
screen:expect([[
|
||||
[tui] insert-mode |
|
||||
[socket 1] this is more t{4: }|
|
||||
han 25 columns {4: }|
|
||||
[socket 2] input{1: } {4: }|
|
||||
{4:~ }|
|
||||
[socket 1] this is more t |
|
||||
han 25 columns |
|
||||
[socket 2] input{1: } |
|
||||
{4:~ } |
|
||||
{3:-- INSERT --} |
|
||||
{3:-- TERMINAL --} |
|
||||
]])
|
||||
|
||||
Reference in New Issue
Block a user