diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2018-10-09 12:21:17 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-09 12:21:17 +0200 |
commit | f4b2b66661893c1ca80b1b662b826bc2307fcc36 (patch) | |
tree | 52c3ad8360df2bc84e454df9a215d56675787d04 /test/functional/terminal/tui_spec.lua | |
parent | 2c680a58541af00f064e7fe80d3414fd6c748178 (diff) | |
parent | 075dc42fb24b98c3241f39c6edb1da21e8cede09 (diff) | |
download | rneovim-f4b2b66661893c1ca80b1b662b826bc2307fcc36.tar.gz rneovim-f4b2b66661893c1ca80b1b662b826bc2307fcc36.tar.bz2 rneovim-f4b2b66661893c1ca80b1b662b826bc2307fcc36.zip |
Merge pull request #9079 from bfredl/tui_cursor
TUI cursor fixes: avoid memory errors after resize with invalid cursor position
Diffstat (limited to 'test/functional/terminal/tui_spec.lua')
-rw-r--r-- | test/functional/terminal/tui_spec.lua | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/test/functional/terminal/tui_spec.lua b/test/functional/terminal/tui_spec.lua index 09f80ca849..834720edc6 100644 --- a/test/functional/terminal/tui_spec.lua +++ b/test/functional/terminal/tui_spec.lua @@ -17,7 +17,6 @@ local nvim_prog = helpers.nvim_prog local nvim_set = helpers.nvim_set local ok = helpers.ok local read_file = helpers.read_file -local wait = helpers.wait if helpers.pending_win32(pending) then return end @@ -473,14 +472,24 @@ describe("tui 't_Co' (terminal colors)", function() nvim_prog, nvim_set)) - feed_data(":echo &t_Co\n") - wait() local tline if maxcolors == 8 or maxcolors == 16 then tline = "~ " else tline = "{4:~ }" end + + screen:expect(string.format([[ + {1: } | + %s| + %s| + %s| + %s| + | + {3:-- TERMINAL --} | + ]], tline, tline, tline, tline)) + + feed_data(":echo &t_Co\n") screen:expect(string.format([[ {1: } | %s| |