aboutsummaryrefslogtreecommitdiff
path: root/src/clients/cave/cmd_display_resolution.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/clients/cave/cmd_display_resolution.cc')
-rw-r--r--src/clients/cave/cmd_display_resolution.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/clients/cave/cmd_display_resolution.cc b/src/clients/cave/cmd_display_resolution.cc
index 66cf06c..e8d18f1 100644
--- a/src/clients/cave/cmd_display_resolution.cc
+++ b/src/clients/cave/cmd_display_resolution.cc
@@ -85,6 +85,7 @@
#include <paludis/dep_spec_annotations.hh>
#include <paludis/slot.hh>
+#include <algorithm>
#include <set>
#include <iterator>
#include <iostream>
@@ -583,6 +584,13 @@ namespace
continue;
}
+ if ((*k)->hide_description())
+ if (std::none_of((*k)->begin(), (*k)->end(),
+ [&old_choices](const std::shared_ptr<const ChoiceValue> & value) {
+ return show_choice_value_even_if_hidden(value, old_choices);
+ }))
+ continue;
+
bool shown_prefix_changed(false), shown_prefix_unchanged(false);
for (Choice::ConstIterator i((*k)->begin()), i_end((*k)->end()) ;
i != i_end ; ++i)