fix(frontends/lean/info_manager): get_closest_env_opts

This commit is contained in:
Leonardo de Moura 2014-09-18 17:03:59 -07:00
parent 9e29602934
commit b53b1825ae

View file

@ -590,7 +590,7 @@ struct info_manager::imp {
auto next = it;
next++;
if (next == m_env_info.end() || next->m_line > linenum)
return optional<pair<environment, options>>(mk_pair(it->m_env, it->m_options));
return optional<pair<environment, options>>(mk_pair(next->m_env, next->m_options));
it = next;
}
}