Mercurial > vim
comparison 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 |
comparison
equal
deleted
inserted
replaced
24708:46c0305949ee | 24709:9d304d363ab6 |
---|---|
1796 | 1796 |
1797 call term_sendkeys(buf, ":call popup_clear()\<CR>") | 1797 call term_sendkeys(buf, ":call popup_clear()\<CR>") |
1798 call term_sendkeys(buf, ":call popup_create(['aaa', 'bbb'], #{title: 'Title', minwidth: 12, border: [], padding: [2, 2, 2, 2]})\<CR>") | 1798 call term_sendkeys(buf, ":call popup_create(['aaa', 'bbb'], #{title: 'Title', minwidth: 12, border: [], padding: [2, 2, 2, 2]})\<CR>") |
1799 call term_sendkeys(buf, ":\<CR>") | 1799 call term_sendkeys(buf, ":\<CR>") |
1800 call VerifyScreenDump(buf, 'Test_popupwin_longtitle_4', {}) | 1800 call VerifyScreenDump(buf, 'Test_popupwin_longtitle_4', {}) |
1801 | |
1802 call term_sendkeys(buf, ":call popup_clear()\<CR>") | |
1803 call term_sendkeys(buf, ":call popup_menu(['This is a line', 'and another line'], #{title: '▶ÄÖÜ◀', })\<CR>") | |
1804 call VerifyScreenDump(buf, 'Test_popupwin_multibytetitle', {}) | |
1805 call term_sendkeys(buf, "x") | |
1801 | 1806 |
1802 " clean up | 1807 " clean up |
1803 call StopVimInTerminal(buf) | 1808 call StopVimInTerminal(buf) |
1804 call delete('XtestPopupTitle') | 1809 call delete('XtestPopupTitle') |
1805 | 1810 |