aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir
diff options
context:
space:
mode:
authorJan Edmund Lazo <janedmundlazo@hotmail.com>2018-08-19 23:53:15 -0400
committerJan Edmund Lazo <janedmundlazo@hotmail.com>2018-08-20 00:05:12 -0400
commit1d2b7020087626ab6e8bd43a203f14f9d1cdd31a (patch)
tree9abceeaa16a9f0bdfb6baed2cb6c7c373ab8819f /src/nvim/testdir
parent2c0998e104bb94bcc52f3aaa37747477fbe59782 (diff)
downloadrneovim-1d2b7020087626ab6e8bd43a203f14f9d1cdd31a.tar.gz
rneovim-1d2b7020087626ab6e8bd43a203f14f9d1cdd31a.tar.bz2
rneovim-1d2b7020087626ab6e8bd43a203f14f9d1cdd31a.zip
vim-patch:8.0.1486: accessing invalid memory with "it"
Problem: Accessing invalid memory with "it". (Dominique Pelle) Solution: Avoid going over the end of the line. (Christian Brabandt, closes vim/vim#2532) https://github.com/vim/vim/commit/82846a00ac0c135946c93c48c1657018a5c96b11
Diffstat (limited to 'src/nvim/testdir')
-rw-r--r--src/nvim/testdir/test_textobjects.vim13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_textobjects.vim b/src/nvim/testdir/test_textobjects.vim
index 684f197f5f..17602fbe26 100644
--- a/src/nvim/testdir/test_textobjects.vim
+++ b/src/nvim/testdir/test_textobjects.vim
@@ -152,3 +152,16 @@ func Test_match()
call assert_equal(3 , match('abc', '\zs', 3, 1))
call assert_equal(-1, match('abc', '\zs', 4, 1))
endfunc
+
+" This was causing an illegal memory access
+func Test_inner_tag()
+ new
+ norm ixxx
+ call feedkeys("v", 'xt')
+ insert
+x
+x
+.
+ norm it
+ q!
+endfunc