summaryrefslogtreecommitdiffstats
path: root/src/gui_gtk.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2004-12-19 22:46:22 +0000
committerBram Moolenaar <Bram@vim.org>2004-12-19 22:46:22 +0000
commit1cd871b5341bf43ee99e136844e3131014880f92 (patch)
tree6bd9573dbc14de3c4ec85e424cbec9c8d1ee0ed8 /src/gui_gtk.c
parent46c9c73de8def79baf8f0a34a12549f6c14944f3 (diff)
updated for version 7.0023v7.0023
Diffstat (limited to 'src/gui_gtk.c')
-rw-r--r--src/gui_gtk.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/gui_gtk.c b/src/gui_gtk.c
index f4287ec2e3..e5b4259bbb 100644
--- a/src/gui_gtk.c
+++ b/src/gui_gtk.c
@@ -2014,7 +2014,7 @@ split_button_string(char_u *button_string, int *n_buttons)
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 @@ split_button_string(char_u *button_string, int *n_buttons)
}
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 */
}