Mercurial > vim
view src/testdir/test_search_mbyte.in @ 8734:986f7c00d43d v7.4.1656
commit https://github.com/vim/vim/commit/92e35efaf6a3278e4729115648997f09cd4005f5
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Mar 26 18:20:41 2016 +0100
patch 7.4.1656
Problem: Crash when using partial with a timer.
Solution: Increment partial reference count. (Hirohito Higashi)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 26 Mar 2016 18:30:06 +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: A