diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-08-31 21:17:39 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-08-31 21:17:39 +0200 |
commit | f9f24ce7a0e5988fedf2e2ff751818f9b07510a6 (patch) | |
tree | af3ede78a2dedfa82536fb134d22dbe6c9a5033c /src/evalfunc.c | |
parent | 5d69fdb7c4b91faf2d92b8d449cc9460f3035fb3 (diff) |
patch 8.1.1953: more functions can be used as a methodv8.1.1953
Problem: More functions can be used as a method.
Solution: Allow more functions to be used as a method.
Diffstat (limited to 'src/evalfunc.c')
-rw-r--r-- | src/evalfunc.c | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/src/evalfunc.c b/src/evalfunc.c index 4561f08a34..dda98748a2 100644 --- 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 |