aboutsummaryrefslogtreecommitdiff
path: root/test/functional/legacy/cmdline_spec.lua
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2025-02-24 10:18:37 +0100
committerbfredl <bjorn.linse@gmail.com>2025-03-04 12:32:22 +0100
commit90a63d242ab0c143ef7f78c78b2adfc8cfbcbbdf (patch)
treed1b78e42ad6fa76e84a422a573e88ec80574b35c /test/functional/legacy/cmdline_spec.lua
parent47cfe901d739149f88b6f917fc1f310727700b40 (diff)
downloadrneovim-90a63d242ab0c143ef7f78c78b2adfc8cfbcbbdf.tar.gz
rneovim-90a63d242ab0c143ef7f78c78b2adfc8cfbcbbdf.tar.bz2
rneovim-90a63d242ab0c143ef7f78c78b2adfc8cfbcbbdf.zip
refactor(tests): use new-style highlight spec in legacy/
Diffstat (limited to 'test/functional/legacy/cmdline_spec.lua')
-rw-r--r--test/functional/legacy/cmdline_spec.lua29
1 files changed, 11 insertions, 18 deletions
diff --git a/test/functional/legacy/cmdline_spec.lua b/test/functional/legacy/cmdline_spec.lua
index 819b40323a..62e77e9b85 100644
--- a/test/functional/legacy/cmdline_spec.lua
+++ b/test/functional/legacy/cmdline_spec.lua
@@ -294,41 +294,34 @@ describe('cmdwin', function()
-- oldtest: Test_cmdwin_interrupted()
it('still uses a new buffer when interrupting more prompt on open', function()
local screen = Screen.new(30, 16)
- screen:set_default_attr_ids({
- [0] = { bold = true, foreground = Screen.colors.Blue }, -- NonText
- [1] = { bold = true, reverse = true }, -- StatusLine
- [2] = { reverse = true }, -- StatusLineNC
- [3] = { bold = true, foreground = Screen.colors.SeaGreen }, -- MoreMsg
- [4] = { bold = true }, -- ModeMsg
- })
command('set more')
command('autocmd WinNew * highlight')
feed('q:')
- screen:expect({ any = pesc('{3:-- More --}^') })
+ screen:expect({ any = pesc('{6:-- More --}^') })
feed('q')
screen:expect([[
|
- {0:~ }|*5
+ {1:~ }|*5
{2:[No Name] }|
- {0::}^ |
- {0:~ }|*6
- {1:[Command Line] }|
+ {1::}^ |
+ {1:~ }|*6
+ {3:[Command Line] }|
|
]])
feed([[aecho 'done']])
screen:expect([[
|
- {0:~ }|*5
+ {1:~ }|*5
{2:[No Name] }|
- {0::}echo 'done'^ |
- {0:~ }|*6
- {1:[Command Line] }|
- {4:-- INSERT --} |
+ {1::}echo 'done'^ |
+ {1:~ }|*6
+ {3:[Command Line] }|
+ {5:-- INSERT --} |
]])
feed('<CR>')
screen:expect([[
^ |
- {0:~ }|*14
+ {1:~ }|*14
done |
]])
end)