comparison src/testdir/test_utf8.vim @ 16148:90b0f2227d73 v8.1.1079

patch 8.1.1079: no need for a separate ScreenLinesUtf8() test function commit https://github.com/vim/vim/commit/48aed0824e47147faf19fc235ad4bcf851584c9c Author: Bram Moolenaar <Bram@vim.org> Date: Sat Mar 30 15:44:17 2019 +0100 patch 8.1.1079: no need for a separate ScreenLinesUtf8() test function Problem: No need for a separate ScreenLinesUtf8() test function. Solution: Get the composing characters with ScreenLines().
author Bram Moolenaar <Bram@vim.org>
date Sat, 30 Mar 2019 15:45:05 +0100
parents eb087f8a26a8
children 219c58b3879c
comparison
equal deleted inserted replaced
16147:bca0fcdb3586 16148:90b0f2227d73
89 call assert_equal("", screenstring(1, 2)) 89 call assert_equal("", screenstring(1, 2))
90 call assert_equal("\u3044", screenstring(1, 3)) 90 call assert_equal("\u3044", screenstring(1, 3))
91 call assert_equal("", screenstring(1, 4)) 91 call assert_equal("", screenstring(1, 4))
92 call assert_equal("\u3046\u3099", screenstring(1, 5)) 92 call assert_equal("\u3046\u3099", screenstring(1, 5))
93 93
94 call assert_equal([text . ' '], ScreenLinesUtf8(1, 8)) 94 call assert_equal([text . ' '], ScreenLines(1, 8))
95 95
96 bwipe! 96 bwipe!
97 endfunc 97 endfunc