patch 8.2.3304: popup window title with wide characters is truncated
Problem: Popup window title with wide characters is truncated.
Solution: Use vim_strsize() instead of MB_CHARLEN(). (Naruhiko Nishino,
closes #8721)
diff --git a/src/popupwin.c b/src/popupwin.c
index 470bd70..d86c6c0 100644
--- a/src/popupwin.c
+++ b/src/popupwin.c
@@ -3896,7 +3896,7 @@
title_wincol = wp->w_wincol + 1;
if (wp->w_popup_title != NULL)
{
- title_len = (int)MB_CHARLEN(wp->w_popup_title);
+ title_len = vim_strsize(wp->w_popup_title);
// truncate the title if too long
if (title_len > total_width - 2)