summaryrefslogtreecommitdiffstats
path: root/src/testdir/test_utf8.vim
diff options
context:
space:
mode:
authorYasuhiro Matsumoto <mattn.jp@gmail.com>2023-01-10 16:03:08 +0000
committerBram Moolenaar <Bram@vim.org>2023-01-10 16:03:08 +0000
commit2bc849ff811059d25310399f982c6706faa7eb35 (patch)
tree1568860af18584b319a18c426162e52751b680d2 /src/testdir/test_utf8.vim
parent523f22d57794a73495aa49f667d7f90cc9c8b5c6 (diff)
patch 9.0.1171: screen is not redrawn after using setcellwidths()v9.0.1171
Problem: Screen is not redrawn after using setcellwidths(). Solution: Redraw the screen when the cell widths have changed. (Yasuhiro Matsumoto, closes #11800)
Diffstat (limited to 'src/testdir/test_utf8.vim')
-rw-r--r--src/testdir/test_utf8.vim17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/testdir/test_utf8.vim b/src/testdir/test_utf8.vim
index bb99cb3e60..935af7ebf7 100644
--- a/src/testdir/test_utf8.vim
+++ b/src/testdir/test_utf8.vim
@@ -2,6 +2,7 @@
source check.vim
source view_util.vim
+source screendump.vim
" Visual block Insert adjusts for multi-byte char
func Test_visual_block_insert()
@@ -198,6 +199,22 @@ func Test_setcellwidths()
call setcellwidths([])
endfunc
+func Test_setcellwidths_dump()
+ CheckRunVimInTerminal
+
+ let lines =<< trim END
+ call setline(1, "\ue5ffDesktop")
+ END
+ call writefile(lines, 'XCellwidths', 'D')
+ let buf = RunVimInTerminal('-S XCellwidths', {'rows': 6})
+ call VerifyScreenDump(buf, 'Test_setcellwidths_dump_1', {})
+
+ call term_sendkeys(buf, ":call setcellwidths([[0xe5ff, 0xe5ff, 2]])\<CR>")
+ call VerifyScreenDump(buf, 'Test_setcellwidths_dump_2', {})
+
+ call StopVimInTerminal(buf)
+endfunc
+
func Test_print_overlong()
" Text with more composing characters than MB_MAXBYTES.
new