fix(frontends/lean/server): crash when INFO is invoked before VISIT/LOAD
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
d30854829d
commit
75be034d3d
1 changed files with 1 additions and 0 deletions
|
@ -150,6 +150,7 @@ void server::visit_file(std::string const & fname) {
|
|||
}
|
||||
|
||||
void server::show_info(unsigned linenum) {
|
||||
check_file();
|
||||
update();
|
||||
unsigned i = m_file->find(linenum);
|
||||
environment const & env = i == 0 ? m_env : m_file->m_snapshots[i-1].m_env;
|
||||
|
|
Loading…
Reference in a new issue