Commit: patch 9.1.0577: Unnecessary checks for v:sizeoflong in test_put.vim

4 views
Skip to first unread message

Christian Brabandt

unread,
Jul 17, 2024, 2:13:31 AM7/17/24
to vim...@googlegroups.com
patch 9.1.0577: Unnecessary checks for v:sizeoflong in test_put.vim

Commit: https://github.com/vim/vim/commit/69a28f6c0861523b1a9c565b3c882f439ae73ef4
Author: zeertzjq <zeer...@outlook.com>
Date: Sat Jul 13 18:59:47 2024 +0200

patch 9.1.0577: Unnecessary checks for v:sizeoflong in test_put.vim

Problem: Unnecessary checks for v:sizeoflong in test_put.vim. They are
no longer necessary as patch 8.2.3661 has changed the count to
be within 32-bit integer limit.
Solution: Remove the checks (zeertzjq).

closes: #15239

Signed-off-by: zeertzjq <zeer...@outlook.com>
Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/src/testdir/test_put.vim b/src/testdir/test_put.vim
index 69c2943aa..94e4f475c 100644
--- a/src/testdir/test_put.vim
+++ b/src/testdir/test_put.vim
@@ -168,10 +168,6 @@ func Test_very_large_count()
endfunc

func Test_very_large_count_64bit()
- if v:sizeoflong < 8
- throw 'Skipped: only works with 64 bit long ints'
- endif
-
new
let @" = repeat('x', 100)
call assert_fails('norm 999999999p', 'E1240:')
@@ -188,10 +184,6 @@ func Test_very_large_count_block()
endfunc

func Test_very_large_count_block_64bit()
- if v:sizeoflong < 8
- throw 'Skipped: only works with 64 bit long ints'
- endif
-
new
call setline(1, repeat('x', 100))
exe "norm \<C-V>$y"
diff --git a/src/version.c b/src/version.c
index 9dbe651ab..a1b87b3eb 100644
--- a/src/version.c
+++ b/src/version.c
@@ -704,6 +704,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 577,
/**/
576,
/**/
Reply all
Reply to author
Forward
0 new messages