view src/testdir/test_search_mbyte.in @ 7210:08b50e436093 v7.4.914

commit https://github.com/vim/vim/commit/98b30a473a58ae98c280e0383c8b1e08c0ebced5 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Nov 10 15:18:02 2015 +0100 patch 7.4.914 Problem: New compiler warning: logical-not-parentheses Solution: Silence the warning.
author Christian Brabandt <cb@256bit.org>
date Tue, 10 Nov 2015 15:30:05 +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: