Skip to content

Commit 6008433

Browse files
committed
patch 7.4.2084
Problem: New digraph test makes testing hang. Solution: Don't set "nocp".
1 parent 19df5cc commit 6008433

2 files changed

Lines changed: 9 additions & 5 deletions

File tree

src/testdir/test_digraph.vim

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

7+
scriptencoding utf-8
8+
79
func! Put_Dig(chars)
810
exe "norm! o\<c-k>".a:chars
911
endfu
@@ -13,8 +15,8 @@ func! Put_Dig_BS(char1, char2)
1315
endfu
1416

1517
func! Test_digraphs()
16-
let _enc=&enc
17-
set nocp enc=utf8
18+
let _enc = &enc
19+
set enc=utf8
1820
new
1921
call Put_Dig("00")
2022
call assert_equal("", getline('.'))
@@ -214,15 +216,15 @@ func! Test_digraphs()
214216
call Put_Dig("el")
215217
call assert_equal(['', 'ü', '', 'l'], getline(line('.')-3,line('.')))
216218
" reset encoding option
217-
let &enc=_enc
219+
let &enc = _enc
218220
bw!
219221
endfunc
220222

221223
func! Test_digraphs_option()
222224
let _enc=&enc
223225
" reset whichwrap option, so that testing <esc><bs>A works,
224226
" without moving up a line
225-
set nocp enc=utf8 digraph ww=
227+
set enc=utf8 digraph ww=
226228
new
227229
call Put_Dig_BS("0","0")
228230
call assert_equal("", getline('.'))
@@ -422,7 +424,7 @@ func! Test_digraphs_option()
422424
call Put_Dig_BS("e","l")
423425
call assert_equal(['', 'ü', '', 'l'], getline(line('.')-3,line('.')))
424426
" reset encoding option
425-
let &enc=_enc
427+
let &enc = _enc
426428
set nodigraph ww&vim
427429
bw!
428430
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+
2084,
761763
/**/
762764
2083,
763765
/**/

0 commit comments

Comments
 (0)