mirror of
https://github.com/mawww/kakoune.git
synced 2024-11-24 16:15:38 +03:00
Color Default now means 'keep as is' for most highlighters
This commit is contained in:
parent
54590f5d79
commit
6f2569ff30
@ -151,7 +151,12 @@ void apply_highlighter(const Context& context,
|
||||
|
||||
auto apply_colors = [](const ColorPair& colors)
|
||||
{
|
||||
return [&colors](DisplayAtom& atom) { atom.colors = colors; };
|
||||
return [&colors](DisplayAtom& atom) {
|
||||
if (colors.first != Colors::Default)
|
||||
atom.colors.first = colors.first;
|
||||
if (colors.second != Colors::Default)
|
||||
atom.colors.second = colors.second;
|
||||
};
|
||||
};
|
||||
|
||||
using ColorSpec = std::unordered_map<size_t, const ColorPair*>;
|
||||
|
Loading…
Reference in New Issue
Block a user