@@ -1184,7 +1184,7 @@ struct FlagLinesHighlighter : Highlighter
11841184 m_option_name{std::move (option_name)},
11851185 m_default_face{std::move (default_face)} {}
11861186
1187- using LineAndFlagList = TimestampedList<LineAndFlag >;
1187+ using LineAndSpecList = TimestampedList<LineAndSpec >;
11881188
11891189 static HighlighterAndId create (HighlighterParameters params)
11901190 {
@@ -1196,7 +1196,7 @@ struct FlagLinesHighlighter : Highlighter
11961196 get_face (default_face); // validate param
11971197
11981198 // throw if wrong option type
1199- GlobalScope::instance ().options ()[option_name].get <LineAndFlagList >();
1199+ GlobalScope::instance ().options ()[option_name].get <LineAndSpecList >();
12001200
12011201 return {" hlflags_" + params[1 ], make_unique<FlagLinesHighlighter>(option_name, default_face) };
12021202 }
@@ -1205,7 +1205,7 @@ struct FlagLinesHighlighter : Highlighter
12051205 void do_highlight (const Context& context, HighlightPass,
12061206 DisplayBuffer& display_buffer, BufferRange) override
12071207 {
1208- auto & line_flags = context.options ()[m_option_name].get_mutable <LineAndFlagList >();
1208+ auto & line_flags = context.options ()[m_option_name].get_mutable <LineAndSpecList >();
12091209 auto & buffer = context.buffer ();
12101210 update_line_flags_ifn (buffer, line_flags);
12111211
@@ -1235,7 +1235,7 @@ struct FlagLinesHighlighter : Highlighter
12351235 {
12361236 int line_num = (int )line.range ().begin .line + 1 ;
12371237 auto it = find_if (lines,
1238- [&](const LineAndFlag & l)
1238+ [&](const LineAndSpec & l)
12391239 { return std::get<0 >(l) == line_num; });
12401240 if (it == lines.end ())
12411241 line.insert (line.begin (), empty);
@@ -1255,7 +1255,7 @@ struct FlagLinesHighlighter : Highlighter
12551255
12561256 void do_compute_display_setup (const Context& context, HighlightPass, DisplaySetup& setup) override
12571257 {
1258- auto & line_flags = context.options ()[m_option_name].get_mutable <LineAndFlagList >();
1258+ auto & line_flags = context.options ()[m_option_name].get_mutable <LineAndSpecList >();
12591259 auto & buffer = context.buffer ();
12601260 update_line_flags_ifn (buffer, line_flags);
12611261
@@ -1274,15 +1274,15 @@ struct FlagLinesHighlighter : Highlighter
12741274 setup.window_range .column -= width;
12751275 }
12761276
1277- void update_line_flags_ifn (const Buffer& buffer, LineAndFlagList & line_flags)
1277+ void update_line_flags_ifn (const Buffer& buffer, LineAndSpecList & line_flags)
12781278 {
12791279 if (line_flags.prefix == buffer.timestamp ())
12801280 return ;
12811281
12821282 auto & lines = line_flags.list ;
12831283
12841284 std::sort (lines.begin (), lines.end (),
1285- [](const LineAndFlag & lhs, const LineAndFlag & rhs)
1285+ [](const LineAndSpec & lhs, const LineAndSpec & rhs)
12861286 { return std::get<0 >(lhs) < std::get<0 >(rhs); });
12871287
12881288 auto modifs = compute_line_modifications (buffer, line_flags.prefix );
@@ -1968,7 +1968,7 @@ void register_highlighters()
19681968 " flag_lines" ,
19691969 { FlagLinesHighlighter::create,
19701970 " Parameters: <face> <option name>\n "
1971- " Display flags specified in the line-flags option <option name> with <face>" } });
1971+ " Display flags specified in the line-spec option <option name> with <face>" } });
19721972 registry.insert ({
19731973 " ranges" ,
19741974 { RangesHighlighter::create,
0 commit comments