aboutsummaryrefslogtreecommitdiff
path: root/test/functional/terminal
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-03-15 18:41:03 +0800
committerGitHub <noreply@github.com>2022-03-15 18:41:03 +0800
commit9a9b93c48503d5c5a1fa12de66594c77b436bc3c (patch)
treec3ed700a411bba1c69bfbd624bd68871b02c4e80 /test/functional/terminal
parentbef7552f7088ff411bd68fc236cfd7b269ad157e (diff)
parente263afc0e972d11d3b9b663c3ac0b5575c4deb88 (diff)
downloadrneovim-9a9b93c48503d5c5a1fa12de66594c77b436bc3c.tar.gz
rneovim-9a9b93c48503d5c5a1fa12de66594c77b436bc3c.tar.bz2
rneovim-9a9b93c48503d5c5a1fa12de66594c77b436bc3c.zip
Merge pull request #16585 from zeertzjq/lua-paste-eol
vim.paste() fixes
Diffstat (limited to 'test/functional/terminal')
-rw-r--r--test/functional/terminal/tui_spec.lua14
1 files changed, 7 insertions, 7 deletions
diff --git a/test/functional/terminal/tui_spec.lua b/test/functional/terminal/tui_spec.lua
index faf44fa01d..c37cde06ab 100644
--- a/test/functional/terminal/tui_spec.lua
+++ b/test/functional/terminal/tui_spec.lua
@@ -323,7 +323,7 @@ describe('TUI', function()
feed_data('just paste it™')
feed_data('\027[201~')
screen:expect{grid=[[
- thisjust paste it™{1:3} is here |
+ thisjust paste it{1:™}3 is here |
|
{4:~ }|
{4:~ }|
@@ -379,7 +379,7 @@ describe('TUI', function()
end)
it('paste: normal-mode (+CRLF #10872)', function()
- feed_data(':set ruler')
+ feed_data(':set ruler | echo')
wait_for_mode('c')
feed_data('\n')
wait_for_mode('n')
@@ -423,13 +423,13 @@ describe('TUI', function()
expect_child_buf_lines(expected_crlf)
feed_data('u')
expect_child_buf_lines({''})
+ feed_data(':echo')
+ wait_for_mode('c')
+ feed_data('\n')
+ wait_for_mode('n')
-- CRLF input
feed_data('\027[200~'..table.concat(expected_lf,'\r\n')..'\027[201~')
- screen:expect{
- grid=expected_grid1:gsub(
- ':set ruler *',
- '3 fewer lines; before #1 0 seconds ago '),
- attr_ids=expected_attr}
+ screen:expect{grid=expected_grid1, attr_ids=expected_attr}
expect_child_buf_lines(expected_crlf)
end)