diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2018-02-12 02:59:29 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-02-12 02:59:29 +0100 |
| commit | 9e9e4431c122f3b98fb0e7498b6572ceac0bca53 (patch) | |
| tree | a28f207390cdbbd27a468537e9065f3b8bfa1cbd /src/nvim/testdir/test_search.vim | |
| parent | 418947fcb34c46af895994ef9ba10a85d2d4c6c2 (diff) | |
| parent | 7da4d1561bd29615257a3f61073b5cf39f1f7463 (diff) | |
| download | rneovim-9e9e4431c122f3b98fb0e7498b6572ceac0bca53.tar.gz rneovim-9e9e4431c122f3b98fb0e7498b6572ceac0bca53.tar.bz2 rneovim-9e9e4431c122f3b98fb0e7498b6572ceac0bca53.zip | |
Merge #8001 from justinmk/vimpatches
Diffstat (limited to 'src/nvim/testdir/test_search.vim')
| -rw-r--r-- | src/nvim/testdir/test_search.vim | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_search.vim b/src/nvim/testdir/test_search.vim index 9456f9c438..5da9397be5 100644 --- a/src/nvim/testdir/test_search.vim +++ b/src/nvim/testdir/test_search.vim @@ -438,3 +438,18 @@ func Test_search_regexp() set undolevels& enew! endfunc + +" Test for search('multi-byte char', 'bce') +func Test_search_multibyte() + if !has('multi_byte') + return + endif + let save_enc = &encoding + set encoding=utf8 + enew! + call append('$', 'A') + call cursor(2, 1) + call assert_equal(2, search('A', 'bce', line('.'))) + enew! + let &encoding = save_enc +endfunc |