view src/testdir/test_search_mbyte.in @ 10017:f132b956e9b5 v7.4.2281

commit https://github.com/vim/vim/commit/0426bae2abede764d0dd366a28663d1c6e6ab0fe Author: Bram Moolenaar <Bram@vim.org> Date: Sun Aug 28 16:06:05 2016 +0200 patch 7.4.2281 Problem: Timer test fails sometimes. Solution: Reduce minimum time by 1 msec.
author Christian Brabandt <cb@256bit.org>
date Sun, 28 Aug 2016 16:15:05 +0200
parents 5f9aae6928bc
children
line wrap: on
line source

Test for search('multi-byte char', 'bce')

STARTTEST
:source small.vim
:source mbyte.vim
:set encoding=utf-8
:/^Test bce:/+1
:$put =search('A', 'bce', line('.'))
:1;/^Results:/,$wq! test.out
ENDTEST

Results:

Test bce: