In zed1, the array of commands was recalculated on every update_matches, In zed2 it's cached before we change the focus.