comparison src/menu.c @ 17262:041156ce1d22 v8.1.1630

patch 8.1.1630: various small problems commit https://github.com/vim/vim/commit/e809a4ed3014fbf717c936c727291b5f038829a5 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Jul 4 17:35:05 2019 +0200 patch 8.1.1630: various small problems Problem: Various small problems. Solution: Various small improvements.
author Bram Moolenaar <Bram@vim.org>
date Thu, 04 Jul 2019 17:45:04 +0200
parents 695d9ef00b03
children 04245f071792
comparison
equal deleted inserted replaced
17261:432714f5c0f7 17262:041156ce1d22
581 emsg(_("E332: Separator cannot be part of a menu path")); 581 emsg(_("E332: Separator cannot be part of a menu path"));
582 goto erret; 582 goto erret;
583 } 583 }
584 584
585 /* Not already there, so lets add it */ 585 /* Not already there, so lets add it */
586 menu = (vimmenu_T *)alloc_clear(sizeof(vimmenu_T)); 586 menu = ALLOC_CLEAR_ONE(vimmenu_T);
587 if (menu == NULL) 587 if (menu == NULL)
588 goto erret; 588 goto erret;
589 589
590 menu->modes = modes; 590 menu->modes = modes;
591 menu->enabled = MENU_ALL_MODES; 591 menu->enabled = MENU_ALL_MODES;