[lnav] fix handling of closed files

This commit is contained in:
Timothy Stack 2020-12-24 00:07:53 -08:00
parent a13ad5b7c2
commit bfa2c7f38c

View File

@ -572,8 +572,8 @@ void rebuild_indexes()
lnav_data.ld_text_source.remove(lf); lnav_data.ld_text_source.remove(lf);
lnav_data.ld_log_source.remove_file(lf); lnav_data.ld_log_source.remove_file(lf);
lnav_data.ld_active_files.close_file(lf); lnav_data.ld_active_files.close_file(lf);
} file_iter = lnav_data.ld_active_files.fc_files.begin();
else { } else {
++file_iter; ++file_iter;
} }
} }