summaryrefslogtreecommitdiff
path: root/src/testdir/test44.in
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2004-07-19 20:55:54 +0000
committerBram Moolenaar <Bram@vim.org>2004-07-19 20:55:54 +0000
commit89cb5e0f646970371359c70927bf3a0cdaf47f27 (patch)
tree04cd1d9618940040d50227fbec4d7e03d4355520 /src/testdir/test44.in
parentab79bcbac383aa26fec23f8610995122a9ff4be6 (diff)
downloadvim-89cb5e0f646970371359c70927bf3a0cdaf47f27.zip
updated for version 7.0011
Diffstat (limited to 'src/testdir/test44.in')
-rw-r--r--src/testdir/test44.in7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/testdir/test44.in b/src/testdir/test44.in
index d90a962d3..2748e3d01 100644
--- a/src/testdir/test44.in
+++ b/src/testdir/test44.in
@@ -1,4 +1,5 @@
Tests for regexp with multi-byte encoding and various magic settings.
+Test matchstr() with a count and multi-byte chars.
STARTTEST
:so mbyte.vim
@@ -21,6 +22,12 @@ x:" Now search for multi-byte with composing char
x:" find word by change of word class
/ち\<カヨ\>は
x:?^1?,$w! test.out
+:e! test.out
+G:put =matchstr(\"אבגד\", \".\", 0, 2) " ב
+:put =matchstr(\"אבגד\", \"..\", 0, 2) " בג
+:put =matchstr(\"אבגד\", \".\", 0, 0) " א
+:put =matchstr(\"אבגד\", \".\", 4, -1) " ג
+:w!
:qa!
ENDTEST