diff options
| author | Scott Prager <splinterofchaos@gmail.com> | 2014-10-21 11:08:35 -0400 |
|---|---|---|
| committer | Justin M. Keyes <justinkz@gmail.com> | 2014-11-13 11:38:19 -0500 |
| commit | 44635add18f7ef49f8d598123ec1d4ec61563e73 (patch) | |
| tree | 045f57c583af6c24c746d6ef4685d369cec27401 /src/nvim/testdir | |
| parent | c5d7d75bb10a3d41bd2c502b010f2148c5e7b796 (diff) | |
| download | rneovim-44635add18f7ef49f8d598123ec1d4ec61563e73.tar.gz rneovim-44635add18f7ef49f8d598123ec1d4ec61563e73.tar.bz2 rneovim-44635add18f7ef49f8d598123ec1d4ec61563e73.zip | |
vim-patch:7.4.421
Problem: Crash when searching for "\ze*". (Urtica Dioica)
Solution: Disallow a multi after \ze and \zs.
https://code.google.com/p/vim/source/detail?r=v7-4-421
Diffstat (limited to 'src/nvim/testdir')
| -rw-r--r-- | src/nvim/testdir/test64.in | 13 | ||||
| -rw-r--r-- | src/nvim/testdir/test64.ok | 2 |
2 files changed, 14 insertions, 1 deletions
diff --git a/src/nvim/testdir/test64.in b/src/nvim/testdir/test64.in index 2abdcd1c08..f2452fc0f3 100644 --- a/src/nvim/testdir/test64.in +++ b/src/nvim/testdir/test64.in @@ -459,7 +459,7 @@ STARTTEST : let text = t[2] : let matchidx = 3 : for engine in [0, 1, 2] -: if engine == 2 && re == 0 || engine == 1 && re ==1 +: if engine == 2 && re == 0 || engine == 1 && re == 1 : continue : endif : let ®expengine = engine @@ -608,6 +608,17 @@ yeGopA END:" "ayb20gg/..\%$ "bybGo"apo"bp:" :" +:" Check for detecting error +:set regexpengine=2 +:for pat in [' \ze*', ' \zs*'] +: try +: let l = matchlist('x x', pat) +: $put ='E888 NOT detected for ' . pat +: catch +: $put ='E888 detected for ' . pat +: endtry +:endfor +:" :""""" Write the results """"""""""""" :/\%#=1^Results/,$wq! test.out ENDTEST diff --git a/src/nvim/testdir/test64.ok b/src/nvim/testdir/test64.ok index e7d173141a..ffc0b5341f 100644 --- a/src/nvim/testdir/test64.ok +++ b/src/nvim/testdir/test64.ok @@ -1097,3 +1097,5 @@ Test Test END EN E +E888 detected for \ze* +E888 detected for \zs* |