diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2019-07-21 14:40:32 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-07-21 14:40:32 +0200 |
| commit | 9d0f8224c97b36116f3c0523bcf6941382892a5b (patch) | |
| tree | 474781d9dd71c62ab9377faa1641321c173f1a85 /src/nvim/testdir | |
| parent | d20bbc802245cc14176028bf209ae3a7e81e21c4 (diff) | |
| parent | a63b95b315673354df9c42efcff248cacca45669 (diff) | |
| download | rneovim-9d0f8224c97b36116f3c0523bcf6941382892a5b.tar.gz rneovim-9d0f8224c97b36116f3c0523bcf6941382892a5b.tar.bz2 rneovim-9d0f8224c97b36116f3c0523bcf6941382892a5b.zip | |
Merge #10555 from janlazo/vim-8.1.1720
vim-patch:8.1.{856,1720}
Diffstat (limited to 'src/nvim/testdir')
| -rw-r--r-- | src/nvim/testdir/test_regexp_utf8.vim | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_regexp_utf8.vim b/src/nvim/testdir/test_regexp_utf8.vim index 97638e9aac..e06c7d6368 100644 --- a/src/nvim/testdir/test_regexp_utf8.vim +++ b/src/nvim/testdir/test_regexp_utf8.vim @@ -183,3 +183,12 @@ func Test_large_class() call assert_equal(1, "\u3042" =~# '[\u3000-\u4000]') set re=0 endfunc + +func Test_optmatch_toolong() + set re=1 + " Can only handle about 8000 characters. + let pat = '\\%[' .. repeat('x', 9000) .. ']' + call assert_fails('call match("abc def", "' .. pat .. '")', 'E339:') + set re=0 +endfunc + |