diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-03-03 11:46:00 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-03-03 11:46:00 +0000 |
commit | 35d8c2010ea6ee5c9bcfa6a8285648172b92ed83 (patch) | |
tree | ca1dc088d5fcc6e11b15c5de07f329da7b9408b0 /src/testdir/test_ins_complete.vim | |
parent | fe9112e630672dcd95e6b384c86f50c27ec10fed (diff) |
patch 8.2.4497: wrong color for half of wide character next to pum scrollbarv8.2.4497
Problem: Wrong color for half of wide character next to pum scrollbar.
Solution: Redraw the screen cell with the right color. (closes #9874)
Diffstat (limited to 'src/testdir/test_ins_complete.vim')
-rw-r--r-- | src/testdir/test_ins_complete.vim | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/testdir/test_ins_complete.vim b/src/testdir/test_ins_complete.vim index cb643769ea..033bb37f12 100644 --- a/src/testdir/test_ins_complete.vim +++ b/src/testdir/test_ins_complete.vim @@ -606,6 +606,24 @@ func Test_pum_with_preview_win() call delete('Xpreviewscript') endfunc +func Test_scrollbar_on_wide_char() + CheckScreendump + + let lines =<< trim END + call setline(1, ['a', ' 啊啊啊', + \ ' 哦哦哦', + \ ' 呃呃呃']) + call setline(5, range(10)->map({i, v -> 'aa' .. v .. 'bb'})) + END + call writefile(lines, 'Xwidescript') + let buf = RunVimInTerminal('-S Xwidescript', #{rows: 10}) + call term_sendkeys(buf, "A\<C-N>") + call VerifyScreenDump(buf, 'Test_scrollbar_on_wide_char', {}) + + call StopVimInTerminal(buf) + call delete('Xwidescript') +endfunc + " Test for inserting the tag search pattern in insert mode func Test_ins_compl_tag_sft() call writefile([ |