diff options
| author | bfredl <bjorn.linse@gmail.com> | 2024-08-14 13:42:05 +0200 |
|---|---|---|
| committer | bfredl <bjorn.linse@gmail.com> | 2024-08-14 14:03:34 +0200 |
| commit | ef4c9b136e0a41ca4a4740688fa0956c2ccbfb2e (patch) | |
| tree | 89c633452a5724d1ac21f81829ba2852c3eade30 /test/functional/autocmd/show_spec.lua | |
| parent | 9d74dc3ac5a66d0fd34de125476a92ec0a77ca58 (diff) | |
| download | rneovim-ef4c9b136e0a41ca4a4740688fa0956c2ccbfb2e.tar.gz rneovim-ef4c9b136e0a41ca4a4740688fa0956c2ccbfb2e.tar.bz2 rneovim-ef4c9b136e0a41ca4a4740688fa0956c2ccbfb2e.zip | |
refactor(tests): again yet more global highlight definitions
Diffstat (limited to 'test/functional/autocmd/show_spec.lua')
| -rw-r--r-- | test/functional/autocmd/show_spec.lua | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/test/functional/autocmd/show_spec.lua b/test/functional/autocmd/show_spec.lua index 7e1818c4fd..10d242527f 100644 --- a/test/functional/autocmd/show_spec.lua +++ b/test/functional/autocmd/show_spec.lua @@ -43,11 +43,9 @@ describe(':autocmd', function() it('should not show group information if interrupted', function() local screen = Screen.new(50, 6) - screen:set_default_attr_ids({ - [1] = { bold = true, foreground = Screen.colors.Blue1 }, -- NonText - [2] = { bold = true, foreground = Screen.colors.SeaGreen }, -- MoreMsg - [3] = { bold = true, foreground = Screen.colors.Magenta }, -- Title - }) + screen:add_extra_attr_ids { + [100] = { foreground = Screen.colors.Magenta, bold = true }, + } screen:attach() exec([[ set more @@ -73,11 +71,11 @@ describe(':autocmd', function() feed(':autocmd<CR>') screen:expect([[ :autocmd | - {3:--- Autocommands ---} | - {3:test_1} {3:BufEnter} | + {100:--- Autocommands ---} | + {100:test_1} {100:BufEnter} | A echo 'A' | B echo 'B' | - {2:-- More --}^ | + {6:-- More --}^ | ]]) feed('q') screen:expect([[ |