1
0
forked from aniani/vim

patch 8.2.0777: terminal test fails

Problem:    Terminal test fails.
Solution:   Adjust character position for double-wide characters.
This commit is contained in:
Bram Moolenaar
2020-05-17 15:09:27 +02:00
parent e178ba3654
commit 79ea680e6b
2 changed files with 6 additions and 4 deletions

View File

@@ -938,10 +938,10 @@ func Test_terminal_composing_unicode()
call WaitForAssert({-> assert_equal(txt, term_getline(buf, lnum[1] + 1))}, 1000)
let l = term_scrape(buf, lnum[1] + 1)
call assert_equal("\u304b\u3099", l[0].chars)
call assert_equal("\u304e", l[1].chars)
call assert_equal("\u304f\u3099", l[2].chars)
call assert_equal("\u3052", l[3].chars)
call assert_equal("\u3053\u3099", l[4].chars)
call assert_equal("\u304e", l[2].chars)
call assert_equal("\u304f\u3099", l[3].chars)
call assert_equal("\u3052", l[5].chars)
call assert_equal("\u3053\u3099", l[6].chars)
" \u00a0 + composing
let txt = "abc\u00a0\u0308"

View File

@@ -746,6 +746,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
777,
/**/
776,
/**/