mirror of
https://github.com/vim/vim.git
synced 2025-10-01 04:54:07 -04:00
updated for version 7.0109
This commit is contained in:
@@ -3592,8 +3592,7 @@ gui_mch_tearoff(
|
||||
if (label == NULL)
|
||||
break;
|
||||
|
||||
STRNCPY(text, menu->name, nameLen);
|
||||
text[nameLen] = NUL;
|
||||
vim_strncpy(text, menu->name, nameLen);
|
||||
text = vim_strchr(text, TAB); /* stop at TAB before actext */
|
||||
if (text == NULL)
|
||||
text = label + nameLen; /* no actext, use whole name */
|
||||
|
Reference in New Issue
Block a user