summaryrefslogtreecommitdiff
path: root/src/testdir/test_popupwin.vim
diff options
context:
space:
mode:
authorRalf Schandl <rakus@users.noreply.github.com>2021-05-28 14:12:14 +0200
committerBram Moolenaar <Bram@vim.org>2021-05-28 14:12:14 +0200
commitbc869874fedf094129831836f131c64f10d98854 (patch)
tree25f910004b20bbfd23fda1d1e55287ce768f1552 /src/testdir/test_popupwin.vim
parent89dcb4dce369de22fba13b9c3c63f11f8d42650b (diff)
downloadvim-git-bc869874fedf094129831836f131c64f10d98854.tar.gz
patch 8.2.2893: multi-byte text in popup title shows up wrongv8.2.2893
Problem: Multi-byte text in popup title shows up wrong. Solution: Use the character width instead of the byte length. (Ralf Schandl, closes #8267, closes #8264)
Diffstat (limited to 'src/testdir/test_popupwin.vim')
-rw-r--r--src/testdir/test_popupwin.vim5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/testdir/test_popupwin.vim b/src/testdir/test_popupwin.vim
index f13252b05..13957e57c 100644
--- a/src/testdir/test_popupwin.vim
+++ b/src/testdir/test_popupwin.vim
@@ -1799,6 +1799,11 @@ func Test_popup_title()
call term_sendkeys(buf, ":\<CR>")
call VerifyScreenDump(buf, 'Test_popupwin_longtitle_4', {})
+ call term_sendkeys(buf, ":call popup_clear()\<CR>")
+ call term_sendkeys(buf, ":call popup_menu(['This is a line', 'and another line'], #{title: '▶ÄÖÜ◀', })\<CR>")
+ call VerifyScreenDump(buf, 'Test_popupwin_multibytetitle', {})
+ call term_sendkeys(buf, "x")
+
" clean up
call StopVimInTerminal(buf)
call delete('XtestPopupTitle')