Mercurial > vim
diff src/evalfunc.c @ 17914:af3d441845cd v8.1.1953
patch 8.1.1953: more functions can be used as a method
Commit: https://github.com/vim/vim/commit/f9f24ce7a0e5988fedf2e2ff751818f9b07510a6
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Aug 31 21:17:39 2019 +0200
patch 8.1.1953: more functions can be used as a method
Problem: More functions can be used as a method.
Solution: Allow more functions to be used as a method.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 31 Aug 2019 21:30:04 +0200 |
parents | 9fac6d0de69a |
children | 2e53305f2239 |
line wrap: on
line diff
--- a/src/evalfunc.c +++ b/src/evalfunc.c @@ -595,33 +595,33 @@ static funcentry_T global_functions[] = {"globpath", 2, 5, FEARG_2, f_globpath}, {"has", 1, 1, 0, f_has}, {"has_key", 2, 2, FEARG_1, f_has_key}, - {"haslocaldir", 0, 2, 0, f_haslocaldir}, - {"hasmapto", 1, 3, 0, f_hasmapto}, - {"highlightID", 1, 1, 0, f_hlID}, // obsolete - {"highlight_exists",1, 1, 0, f_hlexists}, // obsolete - {"histadd", 2, 2, 0, f_histadd}, - {"histdel", 1, 2, 0, f_histdel}, - {"histget", 1, 2, 0, f_histget}, - {"histnr", 1, 1, 0, f_histnr}, - {"hlID", 1, 1, 0, f_hlID}, - {"hlexists", 1, 1, 0, f_hlexists}, + {"haslocaldir", 0, 2, FEARG_1, f_haslocaldir}, + {"hasmapto", 1, 3, FEARG_1, f_hasmapto}, + {"highlightID", 1, 1, FEARG_1, f_hlID}, // obsolete + {"highlight_exists",1, 1, FEARG_1, f_hlexists}, // obsolete + {"histadd", 2, 2, FEARG_2, f_histadd}, + {"histdel", 1, 2, FEARG_1, f_histdel}, + {"histget", 1, 2, FEARG_1, f_histget}, + {"histnr", 1, 1, FEARG_1, f_histnr}, + {"hlID", 1, 1, FEARG_1, f_hlID}, + {"hlexists", 1, 1, FEARG_1, f_hlexists}, {"hostname", 0, 0, 0, f_hostname}, - {"iconv", 3, 3, 0, f_iconv}, - {"indent", 1, 1, 0, f_indent}, + {"iconv", 3, 3, FEARG_1, f_iconv}, + {"indent", 1, 1, FEARG_1, f_indent}, {"index", 2, 4, FEARG_1, f_index}, - {"input", 1, 3, 0, f_input}, - {"inputdialog", 1, 3, 0, f_inputdialog}, - {"inputlist", 1, 1, 0, f_inputlist}, + {"input", 1, 3, FEARG_1, f_input}, + {"inputdialog", 1, 3, FEARG_1, f_inputdialog}, + {"inputlist", 1, 1, FEARG_1, f_inputlist}, {"inputrestore", 0, 0, 0, f_inputrestore}, {"inputsave", 0, 0, 0, f_inputsave}, - {"inputsecret", 1, 2, 0, f_inputsecret}, + {"inputsecret", 1, 2, FEARG_1, f_inputsecret}, {"insert", 2, 3, FEARG_1, f_insert}, {"invert", 1, 1, FEARG_1, f_invert}, - {"isdirectory", 1, 1, 0, f_isdirectory}, + {"isdirectory", 1, 1, FEARG_1, f_isdirectory}, #if defined(FEAT_FLOAT) && defined(HAVE_MATH_H) {"isinf", 1, 1, FEARG_1, f_isinf}, #endif - {"islocked", 1, 1, 0, f_islocked}, + {"islocked", 1, 1, FEARG_1, f_islocked}, #if defined(FEAT_FLOAT) && defined(HAVE_MATH_H) {"isnan", 1, 1, FEARG_1, f_isnan}, #endif