From 655b734ee858e90dd8d28549b7704a71b25d30e7 Mon Sep 17 00:00:00 2001 From: Yegappan Lakshmanan Date: Sun, 6 Mar 2022 14:27:10 +0000 Subject: patch 8.2.4518: the binary tag search feature is always enabled Problem: The binary tag search feature is always enabled. Solution: Remove the #ifdefs. Add a few more tests. (Yegappan Lakshmanan, closes #9893) --- src/evalfunc.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'src/evalfunc.c') diff --git a/src/evalfunc.c b/src/evalfunc.c index 1b93200367..39a2fd2766 100644 --- a/src/evalfunc.c +++ b/src/evalfunc.c @@ -4382,7 +4382,8 @@ common_function(typval_T *argvars, typval_T *rettv, int is_funcref) if (s == NULL || *s == NUL || (use_string && VIM_ISDIGIT(*s)) || (is_funcref && trans_name == NULL)) - semsg(_(e_invalid_argument_str), use_string ? tv_get_string(&argvars[0]) : s); + semsg(_(e_invalid_argument_str), + use_string ? tv_get_string(&argvars[0]) : s); // Don't check an autoload name for existence here. else if (trans_name != NULL && (is_funcref ? find_func(trans_name, is_global) == NULL @@ -6101,13 +6102,7 @@ f_has(typval_T *argvars, typval_T *rettv) 0 #endif }, - {"tag_binary", -#ifdef FEAT_TAG_BINS - 1 -#else - 0 -#endif - }, + {"tag_binary", 1}, // graduated feature {"tcl", #if defined(FEAT_TCL) && !defined(DYNAMIC_TCL) 1 -- cgit v1.2.3