diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2022-02-09 08:46:37 +0100 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2022-09-06 21:48:22 +0200 |
commit | b76e33b5989dcdbc48cdb6f099c9c0c917efa610 (patch) | |
tree | 6f2c1ede122f5d715ef158c9e8f17a4b259de217 /test/functional/terminal/altscreen_spec.lua | |
parent | 9ecaa35f5541029f698cf93e4832b4b179074ab5 (diff) | |
download | rneovim-b76e33b5989dcdbc48cdb6f099c9c0c917efa610.tar.gz rneovim-b76e33b5989dcdbc48cdb6f099c9c0c917efa610.tar.bz2 rneovim-b76e33b5989dcdbc48cdb6f099c9c0c917efa610.zip |
fix(terminal): adopt altscreen test for libvterm 0.2 changes
Due to a rewrite of the resize handling logic in libvterm, the behavior
changed. It's actually fixing a bug.
https://github.com/cryptomilk/libvterm/commit/16b857457575c3fd6ffdb0866d7a190b69c28312
Diffstat (limited to 'test/functional/terminal/altscreen_spec.lua')
-rw-r--r-- | test/functional/terminal/altscreen_spec.lua | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/test/functional/terminal/altscreen_spec.lua b/test/functional/terminal/altscreen_spec.lua index 155a156d15..e4e1aa5fa2 100644 --- a/test/functional/terminal/altscreen_spec.lua +++ b/test/functional/terminal/altscreen_spec.lua @@ -126,13 +126,13 @@ describe(':terminal altscreen', function() wait_removal() feed('<c-\\><c-n>4k') screen:expect([[ - ^line3 | + ^ | | | rows: 4, cols: 50 | | ]]) - eq(8, curbuf('line_count')) + eq(9, curbuf('line_count')) end) describe('and after exit', function() @@ -142,15 +142,11 @@ describe(':terminal altscreen', function() end) it('restore buffer state', function() - -- FIXME(tarruda): Note that the last line was lost after restoring the - -- screen. This is a libvterm bug: When the main screen is restored it - -- seems to "cut" lines that would have been left below the new visible - -- screen. screen:expect([[ - line4 | line5 | line6 | line7 | + line8 | {3:-- TERMINAL --} | ]]) end) |