mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 19:25:11 -07:00
6f7b81bd6d
- Lua test correctly fails when 8.1.0849 is reverted. - 8.1.1001 bug does not manifest in Neovim. vim-patch:8.1.0849: cursorline highlight is not always updated Problem: Cursorline highlight is not always updated. Solution: Set w_last_cursorline when redrawing. Fix resetting cursor flags when using the popup menu.c07ff5c60a
vim-patch:8.1.1001: Visual area not correct when using 'cursorline' Problem: Visual area not correct when using 'cursorline'. Solution: Update w_last_cursorline also in Visual mode. (Hirohito Higashi, closes vim/vim#4086)8156ed3755
37 lines
947 B
Lua
37 lines
947 B
Lua
-- To run this test:
|
|
-- TEST_FILE=test/functional/example_spec.lua make functionaltest
|
|
|
|
local helpers = require('test.functional.helpers')(after_each)
|
|
local Screen = require('test.functional.ui.screen')
|
|
local clear, feed = helpers.clear, helpers.feed
|
|
|
|
describe('example', function()
|
|
local screen
|
|
before_each(function()
|
|
clear()
|
|
screen = Screen.new(20,5)
|
|
screen:attach()
|
|
screen:set_default_attr_ids( {
|
|
[0] = {bold=true, foreground=Screen.colors.Blue},
|
|
[1] = {bold=true, foreground=Screen.colors.Brown}
|
|
} )
|
|
end)
|
|
|
|
it('screen test', function()
|
|
-- Do some stuff.
|
|
feed('iline1<cr>line2<esc>')
|
|
|
|
-- For debugging only: prints the current screen.
|
|
-- screen:snapshot_util()
|
|
|
|
-- Assert the expected state.
|
|
screen:expect([[
|
|
line1 |
|
|
line^2 |
|
|
{0:~ }|
|
|
{0:~ }|
|
|
|
|
|
]])
|
|
end)
|
|
end)
|