aboutsummaryrefslogtreecommitdiff
path: root/test/functional/legacy/put_spec.lua
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-02-18 10:15:08 +0800
committerGitHub <noreply@github.com>2022-02-18 10:15:08 +0800
commitfaeff49cbfd190afba67e221412b7132b7ad8360 (patch)
treebb6260556f056982e51f6dda99bd882e650cafcc /test/functional/legacy/put_spec.lua
parent592f4a7c0807427355635eb371215036325e5bb8 (diff)
parent62a1290758a3cd6af95dc47a3bbdc7dcf290d531 (diff)
downloadrneovim-faeff49cbfd190afba67e221412b7132b7ad8360.tar.gz
rneovim-faeff49cbfd190afba67e221412b7132b7ad8360.tar.bz2
rneovim-faeff49cbfd190afba67e221412b7132b7ad8360.zip
Merge pull request #17449 from zeertzjq/vim-8.2.3659
vim-patch:8.2.{3659,3660,3661}: integer overflow with large line number
Diffstat (limited to 'test/functional/legacy/put_spec.lua')
-rw-r--r--test/functional/legacy/put_spec.lua10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/functional/legacy/put_spec.lua b/test/functional/legacy/put_spec.lua
index 0b969dee55..3ddf65490e 100644
--- a/test/functional/legacy/put_spec.lua
+++ b/test/functional/legacy/put_spec.lua
@@ -23,8 +23,8 @@ describe('put', function()
source [[
new
- let @" = 'x'
- call assert_fails('norm 44444444444444p', 'E1240:')
+ let @" = repeat('x', 100)
+ call assert_fails('norm 999999999p', 'E1240:')
bwipe!
]]
end)
@@ -36,9 +36,9 @@ describe('put', function()
source [[
new
- call setline(1, 'x')
- exe "norm \<C-V>y"
- call assert_fails('norm 44444444444444p', 'E1240:')
+ call setline(1, repeat('x', 100))
+ exe "norm \<C-V>$y"
+ call assert_fails('norm 999999999p', 'E1240:')
bwipe!
]]
end)