menu.c: remove conditional expression that is always true

This commit is contained in:
Peter Kalauskas
2017-11-19 11:19:41 -08:00
parent 9393be477a
commit dddc609859

View File

@@ -1417,7 +1417,8 @@ void ex_emenu(exarg_T *eap)
idx = MENU_INDEX_NORMAL; idx = MENU_INDEX_NORMAL;
} }
if (idx != MENU_INDEX_INVALID && menu->strings[idx] != NULL) { assert(idx != MENU_INDEX_INVALID);
if (menu->strings[idx] != NULL) {
/* When executing a script or function execute the commands right now. /* When executing a script or function execute the commands right now.
* Otherwise put them in the typeahead buffer. */ * Otherwise put them in the typeahead buffer. */
if (current_SID != 0) if (current_SID != 0)