annotate src/testdir/test26.in @ 9738:6818e3c96473 v7.4.2144

commit https://github.com/vim/vim/commit/796aa9c804f09276bd3cc45123f4a191a001dec2 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Aug 2 21:41:28 2016 +0200 patch 7.4.2144 Problem: On MS-Windows quickix does not handle a line with 1023 bytes ending in CR-LF properly. Solution: Don't consider CR a line break. (Ken Takata)
author Christian Brabandt <cb@256bit.org>
date Tue, 02 Aug 2016 21:45:05 +0200
parents b63792dadc23
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 Test for :execute, :while and :if
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 STARTTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 :so small.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 mt:let i = 0
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 :while i < 12
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 : let i = i + 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 : if has("ebcdic")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 : execute "normal o" . i . "\047"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 : else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 : execute "normal o" . i . "\033"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 : endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 : if i % 2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 : normal Ax
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 : if i == 9
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 : break
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 : endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 : if i == 5
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 : continue
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 : else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 : let j = 9
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 : while j > 0
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 : if has("ebcdic")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 : execute "normal" j . "a" . j . "\x27"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 : else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 : execute "normal" j . "a" . j . "\x1b"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 : endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 : let j = j - 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 : endwhile
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 : endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 : endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 : if i == 9
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 : if has("ebcdic")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 : execute "normal Az\047"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 : else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 : execute "normal Az\033"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 : endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 : endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 :endwhile
1405
b63792dadc23 updated for version 7.1-120
vimboss
parents: 7
diff changeset
40 :unlet i j
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 :'t,$w! test.out
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 :qa!
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 ENDTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44