mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
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)
2bc849ff81
This commit is contained in:
parent
ea2658e1f7
commit
15ee93c0b4
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
source check.vim
|
source check.vim
|
||||||
source view_util.vim
|
source view_util.vim
|
||||||
|
source screendump.vim
|
||||||
|
|
||||||
" Visual block Insert adjusts for multi-byte char
|
" Visual block Insert adjusts for multi-byte char
|
||||||
func Test_visual_block_insert()
|
func Test_visual_block_insert()
|
||||||
@ -198,6 +199,22 @@ func Test_setcellwidths()
|
|||||||
call setcellwidths([])
|
call setcellwidths([])
|
||||||
endfunc
|
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()
|
func Test_print_overlong()
|
||||||
" Text with more composing characters than MB_MAXBYTES.
|
" Text with more composing characters than MB_MAXBYTES.
|
||||||
new
|
new
|
||||||
|
Loading…
Reference in New Issue
Block a user