aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir/test_visual.vim
diff options
context:
space:
mode:
authorJan Edmund Lazo <janedmundlazo@hotmail.com>2018-07-14 18:03:20 -0400
committerJan Edmund Lazo <janedmundlazo@hotmail.com>2018-08-06 21:56:39 -0400
commit7f2e3527007580e6885b0fd6253aefba13e74a60 (patch)
treee365b8b41bc741ec1df38c30479590b069da21ad /src/nvim/testdir/test_visual.vim
parent0e57c753d60f7bb32e5a9ac9711b54b40bcfd4cf (diff)
downloadrneovim-7f2e3527007580e6885b0fd6253aefba13e74a60.tar.gz
rneovim-7f2e3527007580e6885b0fd6253aefba13e74a60.tar.bz2
rneovim-7f2e3527007580e6885b0fd6253aefba13e74a60.zip
vim-patch:8.0.0879: crash when shifting with huge number
Problem: Crash when shifting with huge number. Solution: Check for overflow. (Dominique Pelle, closes vim/vim#1945) https://github.com/vim/vim/commit/bae5a17a738d1a3b5c51d9aa5d99e228d3911955
Diffstat (limited to 'src/nvim/testdir/test_visual.vim')
-rw-r--r--src/nvim/testdir/test_visual.vim8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_visual.vim b/src/nvim/testdir/test_visual.vim
index 0be6ebd02d..6520666d45 100644
--- a/src/nvim/testdir/test_visual.vim
+++ b/src/nvim/testdir/test_visual.vim
@@ -17,6 +17,14 @@ func Test_block_shift_multibyte()
q!
endfunc
+func Test_block_shift_overflow()
+ " This used to cause a multiplication overflow followed by a crash.
+ new
+ normal ii
+ exe "normal \<C-V>876543210>"
+ q!
+endfunc
+
func Test_Visual_ctrl_o()
new
call setline(1, ['one', 'two', 'three'])