Mercurial > vim
diff src/evalfunc.c @ 27986:c724906134a3 v8.2.4518
patch 8.2.4518: the binary tag search feature is always enabled
Commit: https://github.com/vim/vim/commit/655b734ee858e90dd8d28549b7704a71b25d30e7
Author: Yegappan Lakshmanan <yegappan@yahoo.com>
Date: Sun Mar 6 14:27:10 2022 +0000
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)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 06 Mar 2022 15:30:06 +0100 |
parents | 1b75d767d9e4 |
children | 2fd2ce8a556c |
line wrap: on
line diff
--- a/src/evalfunc.c +++ b/src/evalfunc.c @@ -4382,7 +4382,8 @@ common_function(typval_T *argvars, typva 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