view src/testdir/test_search_mbyte.in @ 11109:0adcfcf22036 v8.0.0442

patch 8.0.0442: patch shell command not well escaped commit https://github.com/vim/vim/commit/1ef73e33c9414eb02c229d8234aafd9d481a8856 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Mar 9 19:21:30 2017 +0100 patch 8.0.0442: patch shell command not well escaped Problem: Patch shell command uses double quotes around the argument, which allows for $HOME to be expanded. (Etienne) Solution: Use single quotes on Unix. (closes #1543)
author Christian Brabandt <cb@256bit.org>
date Thu, 09 Mar 2017 19: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: