]> granicus.if.org Git - vim/commitdiff
patch 8.2.0777: terminal test fails v8.2.0777
authorBram Moolenaar <Bram@vim.org>
Sun, 17 May 2020 13:09:27 +0000 (15:09 +0200)
committerBram Moolenaar <Bram@vim.org>
Sun, 17 May 2020 13:09:27 +0000 (15:09 +0200)
Problem:    Terminal test fails.
Solution:   Adjust character position for double-wide characters.

src/testdir/test_terminal.vim
src/version.c

index 33ff52fa489cec6175a11949bb6ebf0165920fdf..ab1961aa37ab8aab6ede024689178355d18e6b4a 100644 (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"
index ccd564475c7b58b85581a01f94b668b3b145cc95..b7e6d5caf82c0bfc14f56c89d96dfe2e28a90464 100644 (file)
@@ -746,6 +746,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    777,
 /**/
     776,
 /**/