diff options
author | rbtnn <naru123456789@gmail.com> | 2021-08-07 13:08:45 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-08-07 13:08:45 +0200 |
commit | c611941c606328740b6e9acc1191a5d97ace13e2 (patch) | |
tree | da4100cd18cc0f7ccf1ee44141edd32055a0d3f2 /src/popupwin.c | |
parent | 3276f5846f7ad61f55175959ac21c1b4cf595352 (diff) |
patch 8.2.3304: popup window title with wide characters is truncatedv8.2.3304
Problem: Popup window title with wide characters is truncated.
Solution: Use vim_strsize() instead of MB_CHARLEN(). (Naruhiko Nishino,
closes #8721)
Diffstat (limited to 'src/popupwin.c')
-rw-r--r-- | src/popupwin.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/popupwin.c b/src/popupwin.c index 470bd70150..d86c6c0ef1 100644 --- a/src/popupwin.c +++ b/src/popupwin.c @@ -3896,7 +3896,7 @@ update_popups(void (*win_update)(win_T *wp)) 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) |