diff options
| author | KunMing Xie <qqzz014@gmail.com> | 2018-01-16 06:54:56 +0800 |
|---|---|---|
| committer | Justin M. Keyes <justinkz@gmail.com> | 2018-01-15 23:54:56 +0100 |
| commit | 26251d6d0681194e7dc57fa2dfb8857576faed21 (patch) | |
| tree | c7feb84629482a677926d071801511d4d0f35119 /src/nvim/testdir | |
| parent | f8f7f9d5f5aead86541ffcd12e291b6dfb6811e5 (diff) | |
| download | rneovim-26251d6d0681194e7dc57fa2dfb8857576faed21.tar.gz rneovim-26251d6d0681194e7dc57fa2dfb8857576faed21.tar.bz2 rneovim-26251d6d0681194e7dc57fa2dfb8857576faed21.zip | |
vim-patch:8.0.0374: invalid memory access when using :sc in Ex mode (#7849)
Problem: Invalid memory access when using :sc in Ex mode. (Dominique Pelle)
Solution: Avoid the column being negative. Also fix a hang in Ex mode.
https://github.com/vim/vim/commit/ba748c8a847561c043a63827bcb1d98bdebe16e6
Diffstat (limited to 'src/nvim/testdir')
| -rw-r--r-- | src/nvim/testdir/test_substitute.vim | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_substitute.vim b/src/nvim/testdir/test_substitute.vim index a3bc04dcd0..f2dfdc7019 100644 --- a/src/nvim/testdir/test_substitute.vim +++ b/src/nvim/testdir/test_substitute.vim @@ -106,3 +106,11 @@ function! Test_substitute_variants() endfor endfor endfunction + +func Test_substitute_repeat() + " This caused an invalid memory access. + split Xfile + s/^/x + call feedkeys("Qsc\<CR>y", 'tx') + bwipe! +endfunc |