@@ -173,14 +173,6 @@ files_sub_source::list_input_handle_key(listview_curses& lv, const ncinput& ch)
173173 });
174174 return true ;
175175 }
176- case ' n' : {
177- execute_command (lnav_data.ld_exec_context , " next-mark search" );
178- return true ;
179- }
180- case ' N' : {
181- execute_command (lnav_data.ld_exec_context , " prev-mark search" );
182- return true ;
183- }
184176 case ' /' : {
185177 execute_command (lnav_data.ld_exec_context , " prompt search-files" );
186178 return true ;
@@ -374,7 +366,7 @@ files_sub_source::text_value_for_line(textview_curses& tc,
374366 humanize::alignment::columnar));
375367 }
376368 al.append (" " );
377- auto indexed_size = lf->get_indexed_file_offset ();
369+ auto indexed_size = lf->get_index_size ();
378370 auto total_size = lf->get_content_size ();
379371 if (!lf->get_decompress_error ().empty ()) {
380372 al.append (" " , VC_ICON.value (ui_icon_t ::error));
@@ -487,6 +479,52 @@ files_sub_source::text_handle_mouse(
487479 return false ;
488480}
489481
482+ void
483+ files_sub_source::text_update_marks (vis_bookmarks& bm)
484+ {
485+ auto & bm_errs = bm[&textview_curses::BM_ERRORS];
486+ auto & bm_warn = bm[&textview_curses::BM_WARNINGS];
487+
488+ bm_errs.clear ();
489+ bm_warn.clear ();
490+
491+ auto index = 0_vl;
492+
493+ auto & fc = lnav_data.ld_active_files ;
494+ {
495+ safe::ReadAccess<safe_name_to_stubs> stubs (*fc.fc_name_to_stubs );
496+
497+ for (const auto & stub_pair : *stubs) {
498+ switch (stub_pair.second .fei_description .um_level ) {
499+ case lnav::console::user_message::level::warning:
500+ bm_warn.insert_once (index);
501+ break ;
502+ case lnav::console::user_message::level::error:
503+ bm_errs.insert_once (index);
504+ break ;
505+ default :
506+ break ;
507+ }
508+ index += 1_vl;
509+ }
510+ }
511+
512+ index += vis_line_t (fc.fc_other_files .size ());
513+
514+ for (const auto & lf : fc.fc_files ) {
515+ if (!lf->get_decompress_error ().empty ()) {
516+ bm_errs.insert_once (index);
517+ } else if (!lf->get_notes ().empty ()) {
518+ bm_warn.insert_once (index);
519+ }
520+ index += 1_vl;
521+ }
522+
523+ log_debug (" files bookmarks errors=%zu; warnings=%zu" ,
524+ bm_errs.size (),
525+ bm_warn.size ());
526+ }
527+
490528void
491529files_sub_source::text_selection_changed (textview_curses& tc)
492530{
0 commit comments