annotate src/testdir/test_charsearch.in @ 9686:8c2553beff0f v7.4.2119

commit https://github.com/vim/vim/commit/1e96d9bf98f9ab84d5af7f98d6a961d91b17364f Author: Bram Moolenaar <Bram@vim.org> Date: Fri Jul 29 22:15:09 2016 +0200 patch 7.4.2119 Problem: Closures are not supported. Solution: Capture variables in lambdas from the outer scope. (Yasuhiro Matsumoto, Ken Takata)
author Christian Brabandt <cb@256bit.org>
date Fri, 29 Jul 2016 22:30:08 +0200
parents efbb9916290c
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
6991
814f1f569e4a patch 7.4.813
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
1 Test for character searches
814f1f569e4a patch 7.4.813
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
2
814f1f569e4a patch 7.4.813
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
3 STARTTEST
814f1f569e4a patch 7.4.813
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
4 :so small.vim
814f1f569e4a patch 7.4.813
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
5 :" check that "fe" and ";" work
814f1f569e4a patch 7.4.813
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
6 /^X
814f1f569e4a patch 7.4.813
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
7 ylfep;;p,,p:
814f1f569e4a patch 7.4.813
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
8 :" check that save/restore works
814f1f569e4a patch 7.4.813
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
9 /^Y
814f1f569e4a patch 7.4.813
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
10 ylfep:let csave = getcharsearch()
814f1f569e4a patch 7.4.813
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
11 fip:call setcharsearch(csave)
814f1f569e4a patch 7.4.813
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
12 ;p;p:
7478
dbfa0f9ab289 commit https://github.com/vim/vim/commit/022b896592721838e387e99fd785d3ded7b68be7
Christian Brabandt <cb@256bit.org>
parents: 6991
diff changeset
13 :" check that setcharsearch() changes the settings.
6991
814f1f569e4a patch 7.4.813
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
14 /^Z
814f1f569e4a patch 7.4.813
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
15 ylfep:call setcharsearch({'char': 'k'})
814f1f569e4a patch 7.4.813
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
16 ;p:call setcharsearch({'forward': 0})
8144
efbb9916290c commit https://github.com/vim/vim/commit/663128270e6ea6b529c45ceee4b369734b8b2fdb
Christian Brabandt <cb@256bit.org>
parents: 7478
diff changeset
17 $;p:call setcharsearch({'until': 1})
efbb9916290c commit https://github.com/vim/vim/commit/663128270e6ea6b529c45ceee4b369734b8b2fdb
Christian Brabandt <cb@256bit.org>
parents: 7478
diff changeset
18 :set cpo-=;
6991
814f1f569e4a patch 7.4.813
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
19 ;;p:
814f1f569e4a patch 7.4.813
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
20 :/^X/,$w! test.out
814f1f569e4a patch 7.4.813
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
21 :qa!
814f1f569e4a patch 7.4.813
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
22 ENDTEST
814f1f569e4a patch 7.4.813
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
23
814f1f569e4a patch 7.4.813
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
24 Xabcdefghijkemnopqretuvwxyz
814f1f569e4a patch 7.4.813
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
25 Yabcdefghijkemnopqretuvwxyz
814f1f569e4a patch 7.4.813
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
26 Zabcdefghijkemnokqretkvwxyz