mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-03-15 23:22:53 +08:00
Change c{begin,end} to begin,end
Unfortunately old distributions are old. Fixes build failures on GCC 4.8 (RHEL6/7).
This commit is contained in:
parent
23bf9661b2
commit
0f362b4bb2
@ -1680,8 +1680,9 @@ wcstring complete_print() {
|
||||
|
||||
// Get a list of all completions in a vector, then sort it by order.
|
||||
std::vector<std::reference_wrapper<const completion_entry_t>> all_completions;
|
||||
all_completions.insert(all_completions.cbegin(), completion_set->cbegin(),
|
||||
completion_set->cend());
|
||||
// These should be "c"begin/end, but then gcc from ~~the dark ages~~ RHEL 7 would complain.
|
||||
all_completions.insert(all_completions.begin(), completion_set->begin(),
|
||||
completion_set->end());
|
||||
sort(all_completions.begin(), all_completions.end(), compare_completions_by_order);
|
||||
|
||||
for (const completion_entry_t &e : all_completions) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user