@@ -63,7 +63,7 @@ static const std::vector<std::chrono::microseconds> TIME_SPANS = {
6363
6464static constexpr size_t MAX_OPID_WIDTH = 80 ;
6565static constexpr size_t MAX_DESC_WIDTH = 256 ;
66- static constexpr int CHART_INDENT = 22 ;
66+ static constexpr int CHART_INDENT = 24 ;
6767
6868size_t
6969abbrev_ftime (char * datebuf, size_t db_size, const tm& lb_tm, const tm& dt)
@@ -640,7 +640,7 @@ timeline_source::text_attrs_for_line(textview_curses& tc,
640640
641641 if (width > CHART_INDENT ) {
642642 width -= CHART_INDENT ;
643- double span = (sel_ub - sel_lb).count ();
643+ const double span = (sel_ub - sel_lb).count ();
644644 auto us_per_ch = std::chrono::microseconds{
645645 static_cast <int64_t >(ceil (span / (double ) width))};
646646
@@ -692,6 +692,7 @@ timeline_source::rebuild_indexes()
692692
693693 auto op_guard = lnav_opid_guard::internal (op);
694694 auto & bm = this ->tss_view ->get_bookmarks ();
695+ auto & bm_files = bm[&logfile_sub_source::BM_FILES ];
695696 auto & bm_errs = bm[&textview_curses::BM_ERRORS ];
696697 auto & bm_warns = bm[&textview_curses::BM_WARNINGS ];
697698
@@ -982,6 +983,9 @@ timeline_source::rebuild_indexes()
982983 [](const auto * lhs, const auto * rhs) { return *lhs < *rhs; });
983984 for (size_t lpc = 0 ; lpc < this ->gs_time_order .size (); lpc++) {
984985 const auto & row = *this ->gs_time_order [lpc];
986+ if (row.or_type == row_type::logfile) {
987+ bm_files.insert_once (vis_line_t (lpc));
988+ }
985989 if (row.or_value .otr_level_stats .lls_error_count > 0 ) {
986990 bm_errs.insert_once (vis_line_t (lpc));
987991 } else if (row.or_value .otr_level_stats .lls_warning_count > 0 ) {
0 commit comments