forked from aniani/vim
patch 7.4.2084
Problem: New digraph test makes testing hang. Solution: Don't set "nocp".
This commit is contained in:
@@ -4,6 +4,8 @@ if !has("digraphs") || !has("multi_byte")
|
|||||||
finish
|
finish
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
scriptencoding utf-8
|
||||||
|
|
||||||
func! Put_Dig(chars)
|
func! Put_Dig(chars)
|
||||||
exe "norm! o\<c-k>".a:chars
|
exe "norm! o\<c-k>".a:chars
|
||||||
endfu
|
endfu
|
||||||
@@ -13,8 +15,8 @@ func! Put_Dig_BS(char1, char2)
|
|||||||
endfu
|
endfu
|
||||||
|
|
||||||
func! Test_digraphs()
|
func! Test_digraphs()
|
||||||
let _enc=&enc
|
let _enc = &enc
|
||||||
set nocp enc=utf8
|
set enc=utf8
|
||||||
new
|
new
|
||||||
call Put_Dig("00")
|
call Put_Dig("00")
|
||||||
call assert_equal("∞", getline('.'))
|
call assert_equal("∞", getline('.'))
|
||||||
@@ -214,7 +216,7 @@ func! Test_digraphs()
|
|||||||
call Put_Dig("el")
|
call Put_Dig("el")
|
||||||
call assert_equal(['␀', 'ü', '∞', 'l'], getline(line('.')-3,line('.')))
|
call assert_equal(['␀', 'ü', '∞', 'l'], getline(line('.')-3,line('.')))
|
||||||
" reset encoding option
|
" reset encoding option
|
||||||
let &enc=_enc
|
let &enc = _enc
|
||||||
bw!
|
bw!
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
@@ -222,7 +224,7 @@ func! Test_digraphs_option()
|
|||||||
let _enc=&enc
|
let _enc=&enc
|
||||||
" reset whichwrap option, so that testing <esc><bs>A works,
|
" reset whichwrap option, so that testing <esc><bs>A works,
|
||||||
" without moving up a line
|
" without moving up a line
|
||||||
set nocp enc=utf8 digraph ww=
|
set enc=utf8 digraph ww=
|
||||||
new
|
new
|
||||||
call Put_Dig_BS("0","0")
|
call Put_Dig_BS("0","0")
|
||||||
call assert_equal("∞", getline('.'))
|
call assert_equal("∞", getline('.'))
|
||||||
@@ -422,7 +424,7 @@ func! Test_digraphs_option()
|
|||||||
call Put_Dig_BS("e","l")
|
call Put_Dig_BS("e","l")
|
||||||
call assert_equal(['␀', 'ü', '∞', 'l'], getline(line('.')-3,line('.')))
|
call assert_equal(['␀', 'ü', '∞', 'l'], getline(line('.')-3,line('.')))
|
||||||
" reset encoding option
|
" reset encoding option
|
||||||
let &enc=_enc
|
let &enc = _enc
|
||||||
set nodigraph ww&vim
|
set nodigraph ww&vim
|
||||||
bw!
|
bw!
|
||||||
endfunc
|
endfunc
|
||||||
|
@@ -758,6 +758,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
2084,
|
||||||
/**/
|
/**/
|
||||||
2083,
|
2083,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user