diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2019-02-18 10:37:56 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-02-18 10:37:56 +0100 |
| commit | 9cf600e702872ddae83c222d0a389f809879a212 (patch) | |
| tree | d0913718fedb02a64bb88c1c9db90895631a53f5 /src/nvim/testdir | |
| parent | 6b827bb6646c213b8ad5ee6c1c87dcfd84f4bc29 (diff) | |
| parent | 486234ab3db56621767bea18a1783d289b660764 (diff) | |
| download | rneovim-9cf600e702872ddae83c222d0a389f809879a212.tar.gz rneovim-9cf600e702872ddae83c222d0a389f809879a212.tar.bz2 rneovim-9cf600e702872ddae83c222d0a389f809879a212.zip | |
Merge #9625 from janlazo/vim-8.1.0945
Diffstat (limited to 'src/nvim/testdir')
| -rw-r--r-- | src/nvim/testdir/test_regexp_latin.vim | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_regexp_latin.vim b/src/nvim/testdir/test_regexp_latin.vim index 8528412806..eb8f69ef15 100644 --- a/src/nvim/testdir/test_regexp_latin.vim +++ b/src/nvim/testdir/test_regexp_latin.vim @@ -30,3 +30,20 @@ func Test_equivalence_re2() set re=2 call s:equivalence_test() endfunc + +func Test_range_with_newline() + new + call setline(1, "a") + call assert_equal(0, search("[ -*\\n- ]")) + call assert_equal(0, search("[ -*\\t-\\n]")) + bwipe! +endfunc + +func Test_get_equi_class() + new + " Incomplete equivalence class caused invalid memory access + s/^/[[= + call assert_equal(1, search(getline(1))) + s/.*/[[. + call assert_equal(1, search(getline(1))) +endfunc |