updated for version 7.0023
diff --git a/src/gui_gtk.c b/src/gui_gtk.c
index f4287ec..e5b4259 100644
--- a/src/gui_gtk.c
+++ b/src/gui_gtk.c
@@ -2014,7 +2014,7 @@
if (array != NULL)
{
array[count++] = (char *)button_string;
- for (p = button_string; *p != NUL; ++p)
+ for (p = button_string; *p != NUL; mb_ptr_adv(p))
{
if (*p == DLG_BUTTON_SEP)
{
@@ -2023,10 +2023,6 @@
}
else if (*p == DLG_HOTKEY_CHAR)
*p = '_';
-#ifdef FEAT_MBYTE
- else if (has_mbyte)
- p += (*mb_ptr2len_check)(p) - 1;
-#endif
}
array[count] = NULL; /* currently not relied upon, but doesn't hurt */
}