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

patch 8.1.1915: more functions can be used as methods

Problem:    More functions can be used as methods.
Solution:   Make various functions usable as a method.
This commit is contained in:
Bram Moolenaar
2019-08-23 22:31:37 +02:00
parent d019039ccd
commit 1a3a89168d
12 changed files with 84 additions and 31 deletions

View File

@@ -494,16 +494,16 @@ static funcentry_T global_functions[] =
{"ch_status", 1, 2, FEARG_1, f_ch_status},
#endif
{"changenr", 0, 0, 0, f_changenr},
{"char2nr", 1, 2, 0, f_char2nr},
{"chdir", 1, 1, 0, f_chdir},
{"cindent", 1, 1, 0, f_cindent},
{"clearmatches", 0, 1, 0, f_clearmatches},
{"col", 1, 1, 0, f_col},
{"complete", 2, 2, 0, f_complete},
{"complete_add", 1, 1, 0, f_complete_add},
{"char2nr", 1, 2, FEARG_1, f_char2nr},
{"chdir", 1, 1, FEARG_1, f_chdir},
{"cindent", 1, 1, FEARG_1, f_cindent},
{"clearmatches", 0, 1, FEARG_1, f_clearmatches},
{"col", 1, 1, FEARG_1, f_col},
{"complete", 2, 2, FEARG_2, f_complete},
{"complete_add", 1, 1, FEARG_1, f_complete_add},
{"complete_check", 0, 0, 0, f_complete_check},
{"complete_info", 0, 1, 0, f_complete_info},
{"confirm", 1, 4, 0, f_confirm},
{"complete_info", 0, 1, FEARG_1, f_complete_info},
{"confirm", 1, 4, FEARG_1, f_confirm},
{"copy", 1, 1, FEARG_1, f_copy},
#ifdef FEAT_FLOAT
{"cos", 1, 1, FEARG_1, f_cos},
@@ -511,16 +511,16 @@ static funcentry_T global_functions[] =
#endif
{"count", 2, 4, FEARG_1, f_count},
{"cscope_connection",0,3, 0, f_cscope_connection},
{"cursor", 1, 3, 0, f_cursor},
{"cursor", 1, 3, FEARG_1, f_cursor},
#ifdef MSWIN
{"debugbreak", 1, 1, 0, f_debugbreak},
{"debugbreak", 1, 1, FEARG_1, f_debugbreak},
#endif
{"deepcopy", 1, 2, 0, f_deepcopy},
{"delete", 1, 2, 0, f_delete},
{"deletebufline", 2, 3, 0, f_deletebufline},
{"deepcopy", 1, 2, FEARG_1, f_deepcopy},
{"delete", 1, 2, FEARG_1, f_delete},
{"deletebufline", 2, 3, FEARG_1, f_deletebufline},
{"did_filetype", 0, 0, 0, f_did_filetype},
{"diff_filler", 1, 1, 0, f_diff_filler},
{"diff_hlID", 2, 2, 0, f_diff_hlID},
{"diff_filler", 1, 1, FEARG_1, f_diff_filler},
{"diff_hlID", 2, 2, FEARG_1, f_diff_hlID},
{"empty", 1, 1, FEARG_1, f_empty},
{"environ", 0, 0, 0, f_environ},
{"escape", 2, 2, 0, f_escape},