0
0
mirror of https://github.com/vim/vim.git synced 2025-10-12 06:44:06 -04:00

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.
This commit is contained in:
Bram Moolenaar
2019-08-31 21:17:39 +02:00
parent 5d69fdb7c4
commit f9f24ce7a0
13 changed files with 106 additions and 35 deletions

View File

@@ -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