annotate src/testdir/test49.in @ 15062:3a94f7918980 v8.1.0542

patch 8.1.0542: shiftwidth() does not take 'vartabstop' into account commit https://github.com/vim/vim/commit/f951416a8396a54bbbe21de1a8b16716428549f2 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Nov 22 03:08:29 2018 +0100 patch 8.1.0542: shiftwidth() does not take 'vartabstop' into account Problem: shiftwidth() does not take 'vartabstop' into account. Solution: Use the cursor position or a position explicitly passed. Also make >> and << work better with 'vartabstop'. (Christian Brabandt)
author Bram Moolenaar <Bram@vim.org>
date Thu, 22 Nov 2018 03:15:10 +0100
parents 702f694c9396
children e55c26aaf484
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 This is a test of the script language.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 If after adding a new test, the test output doesn't appear properly in
5905
662ae48e7e24 updated for version 7.4.295
Bram Moolenaar <bram@vim.org>
parents: 1539
diff changeset
4 test49.failed, try to add one or more "G"s at the line ending in "test.out"
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 STARTTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 :so small.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 :se nocp nomore viminfo+=nviminfo
1539
b62965091b8d updated for version 7.1-254
vimboss
parents: 1405
diff changeset
9 :lang mess C
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 :so test49.vim
7387
702f694c9396 commit https://github.com/vim/vim/commit/f9c8bd2137b045f9a64d63eefcf022b4726b1419
Christian Brabandt <cb@256bit.org>
parents: 5905
diff changeset
11 :" Go back to this file and append the results from register r.
702f694c9396 commit https://github.com/vim/vim/commit/f9c8bd2137b045f9a64d63eefcf022b4726b1419
Christian Brabandt <cb@256bit.org>
parents: 5905
diff changeset
12 :buf test49.in
702f694c9396 commit https://github.com/vim/vim/commit/f9c8bd2137b045f9a64d63eefcf022b4726b1419
Christian Brabandt <cb@256bit.org>
parents: 5905
diff changeset
13 G"rp:/^Results/,$w! test.out
1405
b63792dadc23 updated for version 7.1-120
vimboss
parents: 7
diff changeset
14 :"
b63792dadc23 updated for version 7.1-120
vimboss
parents: 7
diff changeset
15 :" make valgrind happy
b63792dadc23 updated for version 7.1-120
vimboss
parents: 7
diff changeset
16 :redir => funclist
b63792dadc23 updated for version 7.1-120
vimboss
parents: 7
diff changeset
17 :silent func
b63792dadc23 updated for version 7.1-120
vimboss
parents: 7
diff changeset
18 :redir END
b63792dadc23 updated for version 7.1-120
vimboss
parents: 7
diff changeset
19 :for line in split(funclist, "\n")
b63792dadc23 updated for version 7.1-120
vimboss
parents: 7
diff changeset
20 : let name = matchstr(line, 'function \zs[A-Z]\w*\ze(')
b63792dadc23 updated for version 7.1-120
vimboss
parents: 7
diff changeset
21 : if name != ''
b63792dadc23 updated for version 7.1-120
vimboss
parents: 7
diff changeset
22 : exe "delfunc " . name
b63792dadc23 updated for version 7.1-120
vimboss
parents: 7
diff changeset
23 : endif
b63792dadc23 updated for version 7.1-120
vimboss
parents: 7
diff changeset
24 :endfor
b63792dadc23 updated for version 7.1-120
vimboss
parents: 7
diff changeset
25 :for v in keys(g:)
b63792dadc23 updated for version 7.1-120
vimboss
parents: 7
diff changeset
26 : silent! exe "unlet " . v
b63792dadc23 updated for version 7.1-120
vimboss
parents: 7
diff changeset
27 :endfor
b63792dadc23 updated for version 7.1-120
vimboss
parents: 7
diff changeset
28 :unlet v
b63792dadc23 updated for version 7.1-120
vimboss
parents: 7
diff changeset
29 :qa!
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 ENDTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 Results of test49.vim: