Skip to content

Commit dfd63e3

Browse files
committed
patch 7.4.2085
Problem: Digraph tests fails on some systems. Solution: Run it separately and set 'encoding' early.
1 parent 6008433 commit dfd63e3

4 files changed

Lines changed: 5 additions & 9 deletions

File tree

src/testdir/Make_all.mak

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@ NEW_TESTS = test_arglist.res \
170170
test_channel.res \
171171
test_cmdline.res \
172172
test_cscope.res \
173+
test_digraph.res \
173174
test_farsi.res \
174175
test_hardcopy.res \
175176
test_history.res \

src/testdir/test_alot.vim

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ source test_assign.vim
55
source test_autocmd.vim
66
source test_cursor_func.vim
77
source test_delete.vim
8-
source test_digraph.vim
98
source test_execute_func.vim
109
source test_ex_undo.vim
1110
source test_expand.vim

src/testdir/test_digraph.vim

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ if !has("digraphs") || !has("multi_byte")
44
finish
55
endif
66

7+
set enc=utf-8
78
scriptencoding utf-8
89

910
func! Put_Dig(chars)
@@ -15,8 +16,6 @@ func! Put_Dig_BS(char1, char2)
1516
endfu
1617

1718
func! Test_digraphs()
18-
let _enc = &enc
19-
set enc=utf8
2019
new
2120
call Put_Dig("00")
2221
call assert_equal("", getline('.'))
@@ -215,16 +214,13 @@ func! Test_digraphs()
215214
call Put_Dig("00")
216215
call Put_Dig("el")
217216
call assert_equal(['', 'ü', '', 'l'], getline(line('.')-3,line('.')))
218-
" reset encoding option
219-
let &enc = _enc
220217
bw!
221218
endfunc
222219

223220
func! Test_digraphs_option()
224-
let _enc=&enc
225221
" reset whichwrap option, so that testing <esc><bs>A works,
226222
" without moving up a line
227-
set enc=utf8 digraph ww=
223+
set digraph ww=
228224
new
229225
call Put_Dig_BS("0","0")
230226
call assert_equal("", getline('.'))
@@ -423,8 +419,6 @@ func! Test_digraphs_option()
423419
call Put_Dig_BS("0","0")
424420
call Put_Dig_BS("e","l")
425421
call assert_equal(['', 'ü', '', 'l'], getline(line('.')-3,line('.')))
426-
" reset encoding option
427-
let &enc = _enc
428422
set nodigraph ww&vim
429423
bw!
430424
endfunc

src/version.c

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

759759
static int included_patches[] =
760760
{ /* Add new patch number below this line */
761+
/**/
762+
2085,
761763
/**/
762764
2084,
763765
/**/

0 commit comments

Comments
 (0)