fix(frontends/lean/info_manager): get_closest_env_opts
This commit is contained in:
parent
9e29602934
commit
b53b1825ae
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue