aboutsummaryrefslogtreecommitdiff
path: root/test/functional/terminal/helpers.lua
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2024-02-06 14:05:49 +0800
committerGitHub <noreply@github.com>2024-02-06 14:05:49 +0800
commitd6fac187f1dee41bb0d6161c160f5fb5842b59b7 (patch)
tree158474346e6cea0b04ebfbae1debb13e95b90589 /test/functional/terminal/helpers.lua
parentf6042d5c300c008fb4b3e3ec4e81537feffbaa0b (diff)
downloadrneovim-d6fac187f1dee41bb0d6161c160f5fb5842b59b7.tar.gz
rneovim-d6fac187f1dee41bb0d6161c160f5fb5842b59b7.tar.bz2
rneovim-d6fac187f1dee41bb0d6161c160f5fb5842b59b7.zip
test(tui_spec): prevent race between nvim_input and nvim_paste (#27356)
Diffstat (limited to 'test/functional/terminal/helpers.lua')
-rw-r--r--test/functional/terminal/helpers.lua13
1 files changed, 7 insertions, 6 deletions
diff --git a/test/functional/terminal/helpers.lua b/test/functional/terminal/helpers.lua
index b878b9eb43..05db1b3c8c 100644
--- a/test/functional/terminal/helpers.lua
+++ b/test/functional/terminal/helpers.lua
@@ -97,18 +97,19 @@ local function screen_setup(extra_rows, command, cols, env, screen_opts)
[1] = { reverse = true }, -- focused cursor
[2] = { background = 11 }, -- unfocused cursor
[3] = { bold = true },
- [4] = { foreground = 12 },
+ [4] = { foreground = 12 }, -- NonText in :terminal session
[5] = { bold = true, reverse = true },
- -- 6 was a duplicate item
- [7] = { foreground = 130 },
- [8] = { foreground = 15, background = 1 }, -- error message
+ [6] = { foreground = 81 }, -- SpecialKey in :terminal session
+ [7] = { foreground = 130 }, -- LineNr in host session
+ [8] = { foreground = 15, background = 1 }, -- ErrorMsg in :terminal session
[9] = { foreground = 4 },
- [10] = { foreground = 121 }, -- "Press ENTER" in embedded :terminal session.
- [11] = { foreground = tonumber('0x00000b') },
+ [10] = { foreground = 121 }, -- MoreMsg in :terminal session
+ [11] = { foreground = 11 }, -- LineNr in :terminal session
[12] = { underline = true },
[13] = { underline = true, reverse = true },
[14] = { underline = true, reverse = true, bold = true },
[15] = { underline = true, foreground = 12 },
+ [16] = { background = 248, foreground = 0 }, -- Visual in :terminal session
})
screen:attach(screen_opts or { rgb = false })