mirror of
https://github.com/neovim/neovim.git
synced 2025-09-23 19:48:32 +00:00
PVS/V571: condition was already verified
This commit is contained in:
@@ -774,15 +774,12 @@ static vimmenu_T *find_menu(vimmenu_T *menu, char_u *name, int modes)
|
|||||||
if (menu_name_equal(name, menu)) {
|
if (menu_name_equal(name, menu)) {
|
||||||
// Found menu
|
// Found menu
|
||||||
if (*p != NUL && menu->children == NULL) {
|
if (*p != NUL && menu->children == NULL) {
|
||||||
if (*p != NUL) {
|
|
||||||
EMSG(_(e_notsubmenu));
|
EMSG(_(e_notsubmenu));
|
||||||
return NULL;
|
return NULL;
|
||||||
} else if ((menu->modes & modes) == 0x0) {
|
} else if ((menu->modes & modes) == 0x0) {
|
||||||
EMSG(_(e_othermode));
|
EMSG(_(e_othermode));
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
} else if (*p == NUL) { // found a full match
|
||||||
}
|
|
||||||
if (*p == NUL) { // found a full match
|
|
||||||
return menu;
|
return menu;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user