diff options
author | Bram Moolenaar <Bram@vim.org> | 2017-12-19 21:23:21 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2017-12-19 21:23:21 +0100 |
commit | 8ada6aa9298b4764d9ca0024dd21b17e815595ce (patch) | |
tree | 62c0e569a6a0ec13d41098dc737c43bac94d0ee7 /src/testdir/test_search.vim | |
parent | 4ce46c2a6b59586e329fb41ad25799872bffc2c8 (diff) | |
download | vim-git-8ada6aa9298b4764d9ca0024dd21b17e815595ce.tar.gz |
patch 8.0.1416: crash when searching for a sentencev8.0.1416
Problem: Crash when searching for a sentence.
Solution: Return NUL when getting character at MAXCOL. (closes #2468)
Diffstat (limited to 'src/testdir/test_search.vim')
-rw-r--r-- | src/testdir/test_search.vim | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/testdir/test_search.vim b/src/testdir/test_search.vim index cb65fbf0b..84edfbbd4 100644 --- a/src/testdir/test_search.vim +++ b/src/testdir/test_search.vim @@ -729,3 +729,10 @@ func Test_look_behind() call search(getline(".")) bwipe! endfunc + +func Test_search_sentence() + new + " this used to cause a crash + call assert_fails("/\\%'", 'E486') + call assert_fails("/", 'E486') +endfunc |