Skip to content

Commit 0913a10

Browse files
committed
patch 7.4.2317
Problem: Normal mode tests fail on MS-Windows. Solution: Do some tests only on Unix. Set 'fileformat' to "unix".
1 parent f7f3e32 commit 0913a10

2 files changed

Lines changed: 11 additions & 5 deletions

File tree

src/testdir/test_normal.vim

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1137,7 +1137,8 @@ func! Test_normal19_z_spell()
11371137
endfu
11381138

11391139
func! Test_normal20_exmode()
1140-
if !(has("win32") || has("win64"))
1140+
if !has("unix")
1141+
" Reading from redirected file doesn't work on MS-Windows
11411142
return
11421143
endif
11431144
call writefile(['1a', 'foo', 'bar', '.', 'w! Xfile2', 'q!'], 'Xscript')
@@ -1168,8 +1169,8 @@ endfu
11681169

11691170
func! Test_normal22_zet()
11701171
" Test for ZZ
1171-
let shell = &shell
1172-
let &shell = 'sh'
1172+
" let shell = &shell
1173+
" let &shell = 'sh'
11731174
call writefile(['1', '2'], 'Xfile')
11741175
let args = ' -u NONE -N -U NONE -i NONE --noplugins -X --not-a-term'
11751176
call system(v:progpath . args . ' -c "%d" -c ":norm! ZZ" Xfile')
@@ -1185,7 +1186,7 @@ func! Test_normal22_zet()
11851186
for file in ['Xfile']
11861187
call delete(file)
11871188
endfor
1188-
let &shell = shell
1189+
" let &shell = shell
11891190
endfu
11901191

11911192
func! Test_normal23_K()
@@ -1206,7 +1207,8 @@ func! Test_normal23_K()
12061207
call assert_match('\*version8\.0\*', getline('.'))
12071208
helpclose
12081209

1209-
if !(has("win32") || has("win64"))
1210+
" Only expect "man" to work on Unix
1211+
if !has("unix")
12101212
let &keywordprg = k
12111213
bw!
12121214
return
@@ -1642,6 +1644,7 @@ fun! Test_normal33_g_cmd2()
16421644
call assert_equal('l', getreg(0))
16431645

16441646
" Test for g Ctrl-G
1647+
set ff=unix
16451648
let a=execute(":norm! g\<c-g>")
16461649
call assert_match('Col 15 of 43; Line 2 of 2; Word 2 of 2; Byte 16 of 45', a)
16471650

@@ -1692,6 +1695,7 @@ endfu
16921695
fun! Test_normal36_g_cmd5()
16931696
new
16941697
call append(0, 'abcdefghijklmnopqrstuvwxyz')
1698+
set ff=unix
16951699
" Test for gp gP
16961700
call append(1, range(1,10))
16971701
1

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -763,6 +763,8 @@ static char *(features[]) =
763763

764764
static int included_patches[] =
765765
{ /* Add new patch number below this line */
766+
/**/
767+
2317,
766768
/**/
767769
2316,
768770
/**/

0 commit comments

Comments
 (0)