fix(frontends/lean/info_manager): use fresh formatter displaying each info object

The formatter may cache results.
This commit is contained in:
Leonardo de Moura 2014-10-23 14:29:17 -07:00
parent 20ab59c740
commit 22ae42d3af

View file

@ -564,8 +564,8 @@ struct info_manager::imp {
void display_core(environment const & env, options const & o, io_state const & ios, unsigned line, void display_core(environment const & env, options const & o, io_state const & ios, unsigned line,
optional<unsigned> const & col) { optional<unsigned> const & col) {
io_state_stream out = regular(env, ios).update_options(o);
m_line_data[line].for_each([&](info_data const & d) { m_line_data[line].for_each([&](info_data const & d) {
io_state_stream out = regular(env, ios).update_options(o);
if ((!col && d.is_cheap()) || (col && d.get_column() == *col)) if ((!col && d.is_cheap()) || (col && d.get_column() == *col))
d.display(out, line); d.display(out, line);
}); });