Skip to content

Commit 9e4d821

Browse files
committed
patch 7.4.2228
Problem: Test files have inconsistant modelines. Solution: Don't set 'tabstop' to 2, use 'sts' and 'sw'.
1 parent 7571d55 commit 9e4d821

13 files changed

Lines changed: 15 additions & 13 deletions

src/testdir/README.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,12 @@ This directory contains tests for various Vim features.
33
If it makes sense, add a new test method to an already existing file. You may
44
want to separate it from other tests with comment lines.
55

6-
The numbered tests are older, we have switched to named tests.
6+
The numbered tests are older, we have switched to named tests. Don't add any
7+
more numbered tests.
78

89
And then you can choose between a new style test, which is a Vim script, or an
910
old style test, which uses Normal mode commands. Use a new style test if you
10-
can.
11+
can. Use an old style test when it needs to run without the +eval feature.
1112

1213

1314
TO ADD A NEW STYLE TEST:

src/testdir/test_backspace_opt.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,4 @@ func Test_backspace_option()
5656
set nocompatible viminfo+=nviminfo
5757
endfunc
5858

59-
" vim: tabstop=2 shiftwidth=0 expandtab
59+
" vim: shiftwidth=2 sts=2 expandtab

src/testdir/test_digraph.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,4 +458,4 @@ func! Test_digraph_cmndline()
458458
call assert_equal("", s)
459459
endfunc
460460

461-
" vim: tabstop=2 shiftwidth=0 sts=-1 expandtab
461+
" vim: shiftwidth=2 sts=2 expandtab

src/testdir/test_gn.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,4 +90,4 @@ func Test_gn_command()
9090
sil! %d _
9191
endfu
9292

93-
" vim: tabstop=2 shiftwidth=0 expandtab
93+
" vim: shiftwidth=2 sts=2 expandtab

src/testdir/test_help_tagjump.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,4 +150,4 @@ func Test_help_complete()
150150
endtry
151151
endfunc
152152

153-
" vim: et sw=2:
153+
" vim: shiftwidth=2 sts=2 expandtab

src/testdir/test_increment.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -757,4 +757,4 @@ func Test_normal_increment_03()
757757
endfunc
758758

759759

760-
" vim: tabstop=2 shiftwidth=2 expandtab
760+
" vim: shiftwidth=2 sts=2 expandtab

src/testdir/test_increment_dbcs.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@ func Test_increment_dbcs_1()
2727
call assert_equal([0, 1, 10, 0], getpos('.'))
2828
endfunc
2929

30-
" vim: shiftwidth=2 expandtab
30+
" vim: shiftwidth=2 sts=2 expandtab

src/testdir/test_match.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,4 +186,4 @@ func Test_matchaddpos()
186186
set hlsearch&
187187
endfunc
188188

189-
" vim: et ts=2 sw=2
189+
" vim: shiftwidth=2 sts=2 expandtab

src/testdir/test_regexp_latin.vim

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,3 @@ func Test_recursive_substitute()
3838
call setwinvar(1, 'myvar', 1)
3939
bwipe!
4040
endfunc
41-

src/testdir/test_tagjump.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ func Test_ptag_with_notagstack()
77
set tagstack&vim
88
endfunc
99

10-
" vim: sw=2 et
10+
" vim: shiftwidth=2 sts=2 expandtab

0 commit comments

Comments
 (0)