diff options
| author | Maxime Coste <mawww@kakoune.org> | 2020-04-27 16:59:59 +1000 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2020-04-27 17:41:09 +1000 |
| commit | ceff2286af78568a0e7b898cc0d025edea08a092 (patch) | |
| tree | 5c66ea9270c0dbf4ca29fb12fc12ebe6cf0f8bc0 /src | |
| parent | 50dc0099c3e691732e1c7c1c79cfb7fc14b36d55 (diff) | |
Fix clang compilation
Diffstat (limited to 'src')
| -rw-r--r-- | src/highlighters.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/highlighters.cc b/src/highlighters.cc index 3ccbc097..298e6b33 100644 --- a/src/highlighters.cc +++ b/src/highlighters.cc @@ -1512,7 +1512,7 @@ struct OptionBasedHighlighter : Highlighter OptionType& get_option(const HighlightContext& context) const { - return context.context.options()[m_option_name].get_mutable<OptionType>(); + return context.context.options()[m_option_name].template get_mutable<OptionType>(); } private: @@ -1594,10 +1594,11 @@ private: auto replacement = parse_display_line(spec, context.context.faces()); auto end = is_empty(range) ? range.first : buffer.char_next(range.last); replace_range(display_buffer, range.first, end, - [&](DisplayLine& line, DisplayLine::iterator pos){ + [&, range=BufferRange{range.first, end}] + (DisplayLine& line, DisplayLine::iterator pos){ for (auto& atom : replacement) { - atom.replace(BufferRange{range.first, end}); + atom.replace(range); pos = ++line.insert(pos, std::move(atom)); } }); |
