0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

updated for version 7.0024

This commit is contained in:
Bram Moolenaar
2004-12-24 14:35:23 +00:00
parent 1cd871b534
commit b5bf5b8fae
43 changed files with 887 additions and 311 deletions

View File

@@ -2014,15 +2014,17 @@ split_button_string(char_u *button_string, int *n_buttons)
if (array != NULL)
{
array[count++] = (char *)button_string;
for (p = button_string; *p != NUL; mb_ptr_adv(p))
for (p = button_string; *p != NUL; )
{
if (*p == DLG_BUTTON_SEP)
{
*p = NUL;
array[count++] = (char *)p + 1;
*p++ = NUL;
array[count++] = (char *)p;
}
else if (*p == DLG_HOTKEY_CHAR)
*p = '_';
*p++ = '_';
else
mb_ptr_adv(p);
}
array[count] = NULL; /* currently not relied upon, but doesn't hurt */
}