aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2024-09-06 06:52:13 +0800
committerGitHub <noreply@github.com>2024-09-06 06:52:13 +0800
commitd60c753cffc4a6e7a33e6c94a6ffbe5bbafad13b (patch)
treeebf83e37af74300e81fe3f81e4b0f3bbe10e0027 /test
parente36e68d35cfa285b28f4c87782311e913a306c92 (diff)
downloadrneovim-d60c753cffc4a6e7a33e6c94a6ffbe5bbafad13b.tar.gz
rneovim-d60c753cffc4a6e7a33e6c94a6ffbe5bbafad13b.tar.bz2
rneovim-d60c753cffc4a6e7a33e6c94a6ffbe5bbafad13b.zip
vim-patch:9.1.0716: resetting setcellwidth() doesn't update the screen (#30274)
Problem: resetting setcellwidth() doesn't update the screen Solution: Redraw after clearing the cellwidth table (Ken Takata) closes: vim/vim#15628 https://github.com/vim/vim/commit/539e9b571ae2a80dfa8a42eb132ad9f65f0bbcbc Co-authored-by: Ken Takata <kentkt@csc.jp>
Diffstat (limited to 'test')
-rw-r--r--test/old/testdir/test_utf8.vim3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/old/testdir/test_utf8.vim b/test/old/testdir/test_utf8.vim
index 3248dc9d98..f46fb9d744 100644
--- a/test/old/testdir/test_utf8.vim
+++ b/test/old/testdir/test_utf8.vim
@@ -228,6 +228,9 @@ func Test_setcellwidths()
call setcellwidths([[0x2103, 0x2103, 2]])
redraw
call assert_equal(19, wincol())
+ call setcellwidths([])
+ redraw
+ call assert_equal((aw == 'single') ? 10 : 19, wincol())
endfor
set ambiwidth& isprint&