comparison src/testdir/test_ins_complete.vim @ 27944:05fa2837e8a1 v8.2.4497

patch 8.2.4497: wrong color for half of wide character next to pum scrollbar Commit: https://github.com/vim/vim/commit/35d8c2010ea6ee5c9bcfa6a8285648172b92ed83 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Mar 3 11:46:00 2022 +0000 patch 8.2.4497: wrong color for half of wide character next to pum scrollbar Problem: Wrong color for half of wide character next to pum scrollbar. Solution: Redraw the screen cell with the right color. (closes https://github.com/vim/vim/issues/9874)
author Bram Moolenaar <Bram@vim.org>
date Thu, 03 Mar 2022 13:00:03 +0100
parents f1d5822ca0d7
children 3de9be15de51
comparison
equal deleted inserted replaced
27943:0af3ca58923a 27944:05fa2837e8a1
602 call VerifyScreenDump(buf, 'Test_pum_with_preview_win', {}) 602 call VerifyScreenDump(buf, 'Test_pum_with_preview_win', {})
603 603
604 call term_sendkeys(buf, "\<Esc>") 604 call term_sendkeys(buf, "\<Esc>")
605 call StopVimInTerminal(buf) 605 call StopVimInTerminal(buf)
606 call delete('Xpreviewscript') 606 call delete('Xpreviewscript')
607 endfunc
608
609 func Test_scrollbar_on_wide_char()
610 CheckScreendump
611
612 let lines =<< trim END
613 call setline(1, ['a', ' 啊啊啊',
614 \ ' 哦哦哦',
615 \ ' 呃呃呃'])
616 call setline(5, range(10)->map({i, v -> 'aa' .. v .. 'bb'}))
617 END
618 call writefile(lines, 'Xwidescript')
619 let buf = RunVimInTerminal('-S Xwidescript', #{rows: 10})
620 call term_sendkeys(buf, "A\<C-N>")
621 call VerifyScreenDump(buf, 'Test_scrollbar_on_wide_char', {})
622
623 call StopVimInTerminal(buf)
624 call delete('Xwidescript')
607 endfunc 625 endfunc
608 626
609 " Test for inserting the tag search pattern in insert mode 627 " Test for inserting the tag search pattern in insert mode
610 func Test_ins_compl_tag_sft() 628 func Test_ins_compl_tag_sft()
611 call writefile([ 629 call writefile([