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

@@ -419,7 +419,7 @@ void parse_util_token_extent(const wchar_t *buff, size_t cursor_pos, const wchar
wcstring parse_util_unescape_wildcards(const wcstring &str) {
wcstring result;
result.reserve(str.size());
bool unesc_qmark = !fish_features().test(features_t::qmark_noglob);
bool unesc_qmark = !feature_test(features_t::qmark_noglob);
const wchar_t *const cs = str.c_str();
for (size_t i = 0; cs[i] != L'\0'; i++) {