summaryrefslogtreecommitdiff
path: root/src/testdir/test_search.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-01-20 20:22:30 +0100
committerBram Moolenaar <Bram@vim.org>2020-01-20 20:22:30 +0100
commit98a336dd497d3422e7efeef9f24cc9e25aeb8a49 (patch)
tree63869e51ae95905c656e70e3e95665b64da12a70 /src/testdir/test_search.vim
parentca33eb256eb910af05e8c9852bc9f716cece1f5c (diff)
downloadvim-git-98a336dd497d3422e7efeef9f24cc9e25aeb8a49.tar.gz
patch 8.2.0133: invalid memory access with search commandv8.2.0133
Problem: Invalid memory access with search command. Solution: When :normal runs out of characters in bracketed paste mode break out of the loop.(closes #5511)
Diffstat (limited to 'src/testdir/test_search.vim')
-rw-r--r--src/testdir/test_search.vim5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/testdir/test_search.vim b/src/testdir/test_search.vim
index 5030deea9..60152f602 100644
--- a/src/testdir/test_search.vim
+++ b/src/testdir/test_search.vim
@@ -1449,3 +1449,8 @@ func Test_searchdecl()
bwipe!
endfunc
+
+func Test_search_special()
+ " this was causing illegal memory access
+ exe "norm /\x80PS"
+endfunc