patch 8.2.0777: terminal test fails
Problem: Terminal test fails. Solution: Adjust character position for double-wide characters.
This commit is contained in:
@ -938,10 +938,10 @@ func Test_terminal_composing_unicode()
|
|||||||
call WaitForAssert({-> assert_equal(txt, term_getline(buf, lnum[1] + 1))}, 1000)
|
call WaitForAssert({-> assert_equal(txt, term_getline(buf, lnum[1] + 1))}, 1000)
|
||||||
let l = term_scrape(buf, lnum[1] + 1)
|
let l = term_scrape(buf, lnum[1] + 1)
|
||||||
call assert_equal("\u304b\u3099", l[0].chars)
|
call assert_equal("\u304b\u3099", l[0].chars)
|
||||||
call assert_equal("\u304e", l[1].chars)
|
call assert_equal("\u304e", l[2].chars)
|
||||||
call assert_equal("\u304f\u3099", l[2].chars)
|
call assert_equal("\u304f\u3099", l[3].chars)
|
||||||
call assert_equal("\u3052", l[3].chars)
|
call assert_equal("\u3052", l[5].chars)
|
||||||
call assert_equal("\u3053\u3099", l[4].chars)
|
call assert_equal("\u3053\u3099", l[6].chars)
|
||||||
|
|
||||||
" \u00a0 + composing
|
" \u00a0 + composing
|
||||||
let txt = "abc\u00a0\u0308"
|
let txt = "abc\u00a0\u0308"
|
||||||
|
|||||||
@ -746,6 +746,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 */
|
||||||
|
/**/
|
||||||
|
777,
|
||||||
/**/
|
/**/
|
||||||
776,
|
776,
|
||||||
/**/
|
/**/
|
||||||
|
|||||||
Reference in New Issue
Block a user