screen: truncate showmode messages

Before this, bottom of screen got messed up when modemsg (+ one extra
space to not force terminal scroll) didn't fit on one line.
This commit is contained in:
Björn Linse
2018-07-11 14:48:22 +02:00
parent 38f0ac07b5
commit e51bffefa5
2 changed files with 16 additions and 5 deletions

View File

@@ -651,9 +651,10 @@ describe('Screen', function()
it('has minimum width/height values', function()
screen:try_resize(1, 1)
screen:expect([[
{2:-- INS^ERT --}|
|
resize^ |
{2:-- INSERT -} |
]])
feed('<esc>:ls')
screen:expect([[
resize |