diff options
| author | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2018-09-16 20:28:05 -0400 |
|---|---|---|
| committer | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2018-09-16 20:46:06 -0400 |
| commit | 91352b36b70ef20a4d1b94c4160129bf5f0d6b60 (patch) | |
| tree | b962dbc4ea8c42dec2e8fc7a7888c58f47cda33f /src/nvim/testdir | |
| parent | 9f1401e25cfcd3db1ccb4471599e13c5e5c3e5d8 (diff) | |
| download | rneovim-91352b36b70ef20a4d1b94c4160129bf5f0d6b60.tar.gz rneovim-91352b36b70ef20a4d1b94c4160129bf5f0d6b60.tar.bz2 rneovim-91352b36b70ef20a4d1b94c4160129bf5f0d6b60.zip | |
vim-patch:8.0.1416: crash when searching for a sentence
Problem: Crash when searching for a sentence.
Solution: Return NUL when getting character at MAXCOL. (closes vim/vim#2468)
https://github.com/vim/vim/commit/8ada6aa9298b4764d9ca0024dd21b17e815595ce
Diffstat (limited to 'src/nvim/testdir')
| -rw-r--r-- | src/nvim/testdir/test_search.vim | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_search.vim b/src/nvim/testdir/test_search.vim index 7663c9e283..6780fb0b44 100644 --- a/src/nvim/testdir/test_search.vim +++ b/src/nvim/testdir/test_search.vim @@ -480,3 +480,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 |