aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-01-11 05:42:33 +0800
committerGitHub <noreply@github.com>2023-01-11 05:42:33 +0800
commit15ee93c0b47957e3b6837d8325e555afa0f21993 (patch)
tree752525bf8a2f73bb02f5a8e56ab484b23d02aaf4
parentea2658e1f7a0791f7bf5b1da2417ea0c618121fc (diff)
downloadrneovim-15ee93c0b47957e3b6837d8325e555afa0f21993.tar.gz
rneovim-15ee93c0b47957e3b6837d8325e555afa0f21993.tar.bz2
rneovim-15ee93c0b47957e3b6837d8325e555afa0f21993.zip
vim-patch:9.0.1171: screen is not redrawn after using setcellwidths() (#21730)
Problem: Screen is not redrawn after using setcellwidths(). Solution: Redraw the screen when the cell widths have changed. (Yasuhiro Matsumoto, closes vim/vim#11800) https://github.com/vim/vim/commit/2bc849ff811059d25310399f982c6706faa7eb35
-rw-r--r--src/nvim/testdir/test_utf8.vim17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_utf8.vim b/src/nvim/testdir/test_utf8.vim
index aa3b02b575..9146cf7ab3 100644
--- a/src/nvim/testdir/test_utf8.vim
+++ b/src/nvim/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