comparison src/testdir/test_listchars.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 aaa6e9a43a60
children 5fb0f15fafea
comparison
equal deleted inserted replaced
16147:bca0fcdb3586 16148:90b0f2227d73
128 let expected = [ 128 let expected = [
129 \ "_ \u3099^I \u309A$" 129 \ "_ \u3099^I \u309A$"
130 \ ] 130 \ ]
131 redraw! 131 redraw!
132 call cursor(1, 1) 132 call cursor(1, 1)
133 let got = ScreenLinesUtf8(1, virtcol('$')) 133 let got = ScreenLines(1, virtcol('$'))
134 bw! 134 bw!
135 call assert_equal(expected, got) 135 call assert_equal(expected, got)
136 let &encoding=oldencoding 136 let &encoding=oldencoding
137 set listchars& ff& 137 set listchars& ff&
138 endfunction 138 endfunction