diff src/testdir/test_popupwin.vim @ 24709:9d304d363ab6 v8.2.2893

patch 8.2.2893: multi-byte text in popup title shows up wrong Commit: https://github.com/vim/vim/commit/bc869874fedf094129831836f131c64f10d98854 Author: Ralf Schandl <rakus@users.noreply.github.com> Date: Fri May 28 14:12:14 2021 +0200 patch 8.2.2893: multi-byte text in popup title shows up wrong 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)
author Bram Moolenaar <Bram@vim.org>
date Fri, 28 May 2021 14:15:03 +0200
parents bcf16185be60
children e8451dc0d643
line wrap: on
line diff
--- 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')