More OSX fixes
This commit is contained in:
parent
bf84f5dcef
commit
e94a82ac98
|
@ -398,7 +398,7 @@ void show_matching_char(const Context& context, HighlightFlags flags, DisplayBuf
|
|||
{
|
||||
auto& colors = get_color("MatchingChar");
|
||||
using CodepointPair = std::pair<Codepoint, Codepoint>;
|
||||
constexpr CodepointPair matching_chars[] = { { '(', ')' }, { '{', '}' }, { '[', ']' }, { '<', '>' } };
|
||||
static const CodepointPair matching_chars[] = { { '(', ')' }, { '{', '}' }, { '[', ']' }, { '<', '>' } };
|
||||
const auto range = display_buffer.range();
|
||||
const auto& buffer = context.buffer();
|
||||
for (auto& sel : context.selections())
|
||||
|
|
|
@ -787,8 +787,7 @@ public:
|
|||
}
|
||||
matches.erase(prefix);
|
||||
CandidateList result;
|
||||
std::copy(make_move_iterator(matches.begin()),
|
||||
make_move_iterator(matches.end()),
|
||||
std::copy(matches.begin(), matches.end(),
|
||||
inserter(result, result.begin()));
|
||||
std::sort(result.begin(), result.end());
|
||||
return { begin.coord(), end.coord(), std::move(result), buffer.timestamp() };
|
||||
|
|
Loading…
Reference in New Issue
Block a user