aboutsummaryrefslogtreecommitdiff
path: root/test/old
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2024-07-14 05:58:32 +0800
committerzeertzjq <zeertzjq@outlook.com>2024-07-14 06:12:42 +0800
commit5531c95101b7656416c97acdd4acb3173d09f64c (patch)
tree7d210309947cb692c28360c97566cbd451cf1803 /test/old
parent6276fce11e1d1d344f988ebfc8857df7d4f1a8bd (diff)
downloadrneovim-5531c95101b7656416c97acdd4acb3173d09f64c.tar.gz
rneovim-5531c95101b7656416c97acdd4acb3173d09f64c.tar.bz2
rneovim-5531c95101b7656416c97acdd4acb3173d09f64c.zip
vim-patch:8.2.4065: computation overflow with large cound for :yank
Problem: Computation overflow with large cound for :yank. Solution: Avoid an overflow. https://github.com/vim/vim/commit/3cf21b305104e91a28e4ce3a473672b2e88a9469 Co-authored-by: Bram Moolenaar <Bram@vim.org>
Diffstat (limited to 'test/old')
-rw-r--r--test/old/testdir/test_excmd.vim7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/old/testdir/test_excmd.vim b/test/old/testdir/test_excmd.vim
index c8ddaa90fd..d900207928 100644
--- a/test/old/testdir/test_excmd.vim
+++ b/test/old/testdir/test_excmd.vim
@@ -722,9 +722,14 @@ func Test_address_line_overflow()
throw 'Skipped: only works with 64 bit long ints'
endif
new
- call setline(1, 'text')
+ call setline(1, range(100))
call assert_fails('|.44444444444444444444444', 'E1247:')
call assert_fails('|.9223372036854775806', 'E1247:')
+
+ $
+ yank 77777777777777777777
+ call assert_equal("99\n", @")
+
bwipe!
endfunc