{
int did_it = FALSE;
int did_local = FALSE;
+ int keyround1_simplfied = keyround == 1 && did_simplify;
int round;
int hash;
int new_hash;
mpp = &(mp->m_next);
continue;
}
- if (did_simplify && keyround == 1
- && !mp->m_simplified)
+ if (keyround1_simplfied && !mp->m_simplified)
break;
// We reset the indicated mode bits. If nothing
// is left the entry is deleted below.
mp->m_nowait = nowait;
mp->m_silent = silent;
mp->m_mode = mode;
- mp->m_simplified =
- did_simplify && keyround == 1;
+ mp->m_simplified = keyround1_simplfied;
#ifdef FEAT_EVAL
mp->m_expr = expr;
mp->m_script_ctx = current_sctx;
// delete entry
if (!did_it)
{
- if (!did_simplify || keyround == 2)
+ if (!keyround1_simplfied)
retval = 2; // no match
}
else if (*keys == Ctrl_C)
#ifdef FEAT_EVAL
expr, /* sid */ -1, /* scriptversion */ 0, /* lnum */ 0,
#endif
- did_simplify && keyround == 1) == FAIL)
+ keyround1_simplfied) == FAIL)
{
retval = 4; // no mem
goto theend;