diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-07-14 05:58:32 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2024-07-14 06:12:42 +0800 |
commit | 5531c95101b7656416c97acdd4acb3173d09f64c (patch) | |
tree | 7d210309947cb692c28360c97566cbd451cf1803 /test/functional/ex_cmds/excmd_spec.lua | |
parent | 6276fce11e1d1d344f988ebfc8857df7d4f1a8bd (diff) | |
download | rneovim-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/functional/ex_cmds/excmd_spec.lua')
-rw-r--r-- | test/functional/ex_cmds/excmd_spec.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/functional/ex_cmds/excmd_spec.lua b/test/functional/ex_cmds/excmd_spec.lua index 20ebb2dedb..923bb99eeb 100644 --- a/test/functional/ex_cmds/excmd_spec.lua +++ b/test/functional/ex_cmds/excmd_spec.lua @@ -29,13 +29,13 @@ describe('Ex cmds', function() ':tabnext 9999999999999999999999999999999999999999', 'Vim(tabnext):E475: Invalid argument: 9999999999999999999999999999999999999999' ) - check_excmd_err( - ':N 9999999999999999999999999999999999999999', - 'Vim(Next):E939: Positive count required' + eq( + 'Vim(Next):E163: There is only one file to edit', + pcall_err(command, ':N 9999999999999999999999999999999999999999') ) check_excmd_err( ':bdelete 9999999999999999999999999999999999999999', - 'Vim(bdelete):E939: Positive count required' + 'Vim(bdelete):E516: No buffers were deleted' ) eq( 'Vim(menu):E329: No menu "9999999999999999999999999999999999999999"', |