comparison src/testdir/test_terminal.vim @ 20445:9f34aae7f69d v8.2.0777

patch 8.2.0777: terminal test fails Commit: https://github.com/vim/vim/commit/79ea680e6b1dd02035fdf8a5521927cf1f98c2ed Author: Bram Moolenaar <Bram@vim.org> Date: Sun May 17 15:09:27 2020 +0200 patch 8.2.0777: terminal test fails Problem: Terminal test fails. Solution: Adjust character position for double-wide characters.
author Bram Moolenaar <Bram@vim.org>
date Sun, 17 May 2020 15:15:04 +0200
parents 42ab4d40e78f
children 3fe45aa3bbc5
comparison
equal deleted inserted replaced
20444:82b4ce621577 20445:9f34aae7f69d
936 call assert_match("echo " . txt, term_getline(buf, lnum[1])) 936 call assert_match("echo " . txt, term_getline(buf, lnum[1]))
937 call term_sendkeys(buf, "\<cr>") 937 call term_sendkeys(buf, "\<cr>")
938 call WaitForAssert({-> assert_equal(txt, term_getline(buf, lnum[1] + 1))}, 1000) 938 call WaitForAssert({-> assert_equal(txt, term_getline(buf, lnum[1] + 1))}, 1000)
939 let l = term_scrape(buf, lnum[1] + 1) 939 let l = term_scrape(buf, lnum[1] + 1)
940 call assert_equal("\u304b\u3099", l[0].chars) 940 call assert_equal("\u304b\u3099", l[0].chars)
941 call assert_equal("\u304e", l[1].chars) 941 call assert_equal("\u304e", l[2].chars)
942 call assert_equal("\u304f\u3099", l[2].chars) 942 call assert_equal("\u304f\u3099", l[3].chars)
943 call assert_equal("\u3052", l[3].chars) 943 call assert_equal("\u3052", l[5].chars)
944 call assert_equal("\u3053\u3099", l[4].chars) 944 call assert_equal("\u3053\u3099", l[6].chars)
945 945
946 " \u00a0 + composing 946 " \u00a0 + composing
947 let txt = "abc\u00a0\u0308" 947 let txt = "abc\u00a0\u0308"
948 call term_sendkeys(buf, "echo " . txt) 948 call term_sendkeys(buf, "echo " . txt)
949 call TermWait(buf, 25) 949 call TermWait(buf, 25)