view src/testdir/test_search_mbyte.in @ 7856:226ed297307f v7.4.1225

commit https://github.com/vim/vim/commit/d14e00ea67afbaa8cb4a7e6b1eb306da6a2d5adb Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jan 31 17:30:51 2016 +0100 patch 7.4.1225 Problem: Still a few old style function declarations. Solution: Make them new style. (Hirohito Higashi)
author Christian Brabandt <cb@256bit.org>
date Sun, 31 Jan 2016 17:45:04 +0100
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: