Add a feature_test() function

This is a convenience over fish_features().test()
This commit is contained in:
ridiculousfish
2018-05-05 19:44:57 -07:00
parent 762c31be87
commit 4194b4efee
7 changed files with 12 additions and 9 deletions

View File

@@ -550,7 +550,7 @@ static void color_argument_internal(const wcstring &buffstr,
break;
}
case L'?': {
if (!fish_features().test(features_t::qmark_noglob)) {
if (!feature_test(features_t::qmark_noglob)) {
colors[in_pos] = highlight_spec_operator;
}
break;