fix(frontends/lean/parser): caching problem when using "show hole" and "show goal" command line options
This commit is contained in:
parent
0786841c71
commit
d50fa26ca2
1 changed files with 9 additions and 4 deletions
|
@ -190,11 +190,16 @@ void parser::add_abbrev_index(name const & a, name const & d) {
|
||||||
}
|
}
|
||||||
|
|
||||||
bool parser::are_info_lines_valid(unsigned start_line, unsigned end_line) const {
|
bool parser::are_info_lines_valid(unsigned start_line, unsigned end_line) const {
|
||||||
if (!m_info_manager)
|
if (m_stop_at) {
|
||||||
return true; // we are not tracking info
|
if (start_line <= m_stop_at_line && m_stop_at_line <= end_line)
|
||||||
for (unsigned i = start_line; i <= end_line; i++)
|
|
||||||
if (m_info_manager->is_invalidated(i))
|
|
||||||
return false;
|
return false;
|
||||||
|
}
|
||||||
|
if (m_info_manager) {
|
||||||
|
// we are tracking info
|
||||||
|
for (unsigned i = start_line; i <= end_line; i++)
|
||||||
|
if (m_info_manager->is_invalidated(i))
|
||||||
|
return false;
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue