mirror of
https://github.com/neovim/neovim.git
synced 2025-09-20 10:18:18 +00:00
*: Partial string handling refactoring
Main points: - Replace `char_u` with `char` in some cases. - Remove `str[len] = NUL` hack in some cases when `str` may be considered `const`.
This commit is contained in:
@@ -755,10 +755,11 @@ static void show_menus_recursive(vimmenu_T *menu, int modes, int depth)
|
||||
else
|
||||
msg_putchar(' ');
|
||||
MSG_PUTS(" ");
|
||||
if (*menu->strings[bit] == NUL)
|
||||
msg_puts_attr((char_u *)"<Nop>", hl_attr(HLF_8));
|
||||
else
|
||||
if (*menu->strings[bit] == NUL) {
|
||||
msg_puts_attr("<Nop>", hl_attr(HLF_8));
|
||||
} else {
|
||||
msg_outtrans_special(menu->strings[bit], FALSE);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if (menu == NULL) {
|
||||
|
Reference in New Issue
Block a user