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

@@ -36,7 +36,7 @@ const wchar_t *tokenizer_error::Message() const {
}
// Whether carets redirect stderr.
static bool caret_redirs() { return !fish_features().test(features_t::stderr_nocaret); }
static bool caret_redirs() { return !feature_test(features_t::stderr_nocaret); }
/// Return an error token and mark that we no longer have a next token.
tok_t tokenizer_t::call_error(tokenizer_error *error_type, const wchar_t *token_start,