Mercurial > vim
comparison src/testdir/test_put.vim @ 25917:79a5c8238a5d v8.2.3492
patch 8.2.3492: crash when pasting too many times
Commit: https://github.com/vim/vim/commit/eeed1c7ae090c17f4df51cf97b2a9e4d8b4f4dc7
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Oct 10 12:35:17 2021 +0100
patch 8.2.3492: crash when pasting too many times
Problem: Crash when pasting too many times.
Solution: Limit the size to what fits in an int. (closes https://github.com/vim/vim/issues/8962)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 10 Oct 2021 13:45:04 +0200 |
parents | 196f75cf6983 |
children | db5b5c38d222 |
comparison
equal
deleted
inserted
replaced
25916:52792b298baf | 25917:79a5c8238a5d |
---|---|
132 call assert_equal([0, 4, 3, 0], getpos("']")) | 132 call assert_equal([0, 4, 3, 0], getpos("']")) |
133 | 133 |
134 bwipe! | 134 bwipe! |
135 endfunc | 135 endfunc |
136 | 136 |
137 func Test_very_larg_count() | |
138 new | |
139 let @" = 'x' | |
140 call assert_fails('norm 44444444444444p', 'E1240:') | |
141 bwipe! | |
142 endfunc | |
143 | |
144 | |
137 " vim: shiftwidth=2 sts=2 expandtab | 145 " vim: shiftwidth=2 sts=2 expandtab |