1
0
forked from aniani/vim

patch 9.1.0716: resetting setcellwidth() doesn't update the screen

Problem:  resetting setcellwidth() doesn't update the screen
Solution: Redraw after clearing the cellwidth table (Ken Takata)

closes: #15628

Signed-off-by: Ken Takata <kentkt@csc.jp>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Ken Takata
2024-09-05 17:19:34 +02:00
committed by Christian Brabandt
parent 150b5078ac
commit 539e9b571a
3 changed files with 7 additions and 1 deletions

View File

@@ -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&