mirror of
https://github.com/vim/vim.git
synced 2025-09-27 04:14:06 -04:00
patch 7.4.2228
Problem: Test files have inconsistant modelines. Solution: Don't set 'tabstop' to 2, use 'sts' and 'sw'.
This commit is contained in:
@@ -3,11 +3,12 @@ This directory contains tests for various Vim features.
|
||||
If it makes sense, add a new test method to an already existing file. You may
|
||||
want to separate it from other tests with comment lines.
|
||||
|
||||
The numbered tests are older, we have switched to named tests.
|
||||
The numbered tests are older, we have switched to named tests. Don't add any
|
||||
more numbered tests.
|
||||
|
||||
And then you can choose between a new style test, which is a Vim script, or an
|
||||
old style test, which uses Normal mode commands. Use a new style test if you
|
||||
can.
|
||||
can. Use an old style test when it needs to run without the +eval feature.
|
||||
|
||||
|
||||
TO ADD A NEW STYLE TEST:
|
||||
|
@@ -56,4 +56,4 @@ func Test_backspace_option()
|
||||
set nocompatible viminfo+=nviminfo
|
||||
endfunc
|
||||
|
||||
" vim: tabstop=2 shiftwidth=0 expandtab
|
||||
" vim: shiftwidth=2 sts=2 expandtab
|
||||
|
@@ -458,4 +458,4 @@ func! Test_digraph_cmndline()
|
||||
call assert_equal("€", s)
|
||||
endfunc
|
||||
|
||||
" vim: tabstop=2 shiftwidth=0 sts=-1 expandtab
|
||||
" vim: shiftwidth=2 sts=2 expandtab
|
||||
|
@@ -90,4 +90,4 @@ func Test_gn_command()
|
||||
sil! %d _
|
||||
endfu
|
||||
|
||||
" vim: tabstop=2 shiftwidth=0 expandtab
|
||||
" vim: shiftwidth=2 sts=2 expandtab
|
||||
|
@@ -150,4 +150,4 @@ func Test_help_complete()
|
||||
endtry
|
||||
endfunc
|
||||
|
||||
" vim: et sw=2:
|
||||
" vim: shiftwidth=2 sts=2 expandtab
|
||||
|
@@ -757,4 +757,4 @@ func Test_normal_increment_03()
|
||||
endfunc
|
||||
|
||||
|
||||
" vim: tabstop=2 shiftwidth=2 expandtab
|
||||
" vim: shiftwidth=2 sts=2 expandtab
|
||||
|
@@ -27,4 +27,4 @@ func Test_increment_dbcs_1()
|
||||
call assert_equal([0, 1, 10, 0], getpos('.'))
|
||||
endfunc
|
||||
|
||||
" vim: shiftwidth=2 expandtab
|
||||
" vim: shiftwidth=2 sts=2 expandtab
|
||||
|
@@ -186,4 +186,4 @@ func Test_matchaddpos()
|
||||
set hlsearch&
|
||||
endfunc
|
||||
|
||||
" vim: et ts=2 sw=2
|
||||
" vim: shiftwidth=2 sts=2 expandtab
|
||||
|
@@ -38,4 +38,3 @@ func Test_recursive_substitute()
|
||||
call setwinvar(1, 'myvar', 1)
|
||||
bwipe!
|
||||
endfunc
|
||||
|
||||
|
@@ -7,4 +7,4 @@ func Test_ptag_with_notagstack()
|
||||
set tagstack&vim
|
||||
endfunc
|
||||
|
||||
" vim: sw=2 et
|
||||
" vim: shiftwidth=2 sts=2 expandtab
|
||||
|
@@ -112,4 +112,4 @@ func Test_paused()
|
||||
call assert_inrange(0, 10, slept)
|
||||
endfunc
|
||||
|
||||
" vim: ts=2 sw=0 et
|
||||
" vim: shiftwidth=2 sts=2 expandtab
|
||||
|
@@ -67,4 +67,4 @@ function Test_window_cmd_wincmd_gf()
|
||||
augroup! test_window_cmd_wincmd_gf
|
||||
endfunc
|
||||
|
||||
" vim: sw=2 et
|
||||
" vim: shiftwidth=2 sts=2 expandtab
|
||||
|
@@ -763,6 +763,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
2228,
|
||||
/**/
|
||||
2227,
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user