0
0
mirror of https://github.com/vim/vim.git synced 2025-10-13 06:54:15 -04:00

patch 8.1.2013: 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-09-08 21:51:41 +02:00
parent 7ee80f7661
commit f92e58cadb
11 changed files with 145 additions and 49 deletions

View File

@@ -822,46 +822,46 @@ static funcentry_T global_functions[] =
#endif
{"test_settime", 1, 1, FEARG_1, f_test_settime},
#ifdef FEAT_TIMERS
{"timer_info", 0, 1, 0, f_timer_info},
{"timer_pause", 2, 2, 0, f_timer_pause},
{"timer_start", 2, 3, 0, f_timer_start},
{"timer_stop", 1, 1, 0, f_timer_stop},
{"timer_info", 0, 1, FEARG_1, f_timer_info},
{"timer_pause", 2, 2, FEARG_1, f_timer_pause},
{"timer_start", 2, 3, FEARG_1, f_timer_start},
{"timer_stop", 1, 1, FEARG_1, f_timer_stop},
{"timer_stopall", 0, 0, 0, f_timer_stopall},
#endif
{"tolower", 1, 1, 0, f_tolower},
{"toupper", 1, 1, 0, f_toupper},
{"tr", 3, 3, 0, f_tr},
{"trim", 1, 2, 0, f_trim},
{"tolower", 1, 1, FEARG_1, f_tolower},
{"toupper", 1, 1, FEARG_1, f_toupper},
{"tr", 3, 3, FEARG_1, f_tr},
{"trim", 1, 2, FEARG_1, f_trim},
#ifdef FEAT_FLOAT
{"trunc", 1, 1, FEARG_1, f_trunc},
#endif
{"type", 1, 1, FEARG_1, f_type},
{"undofile", 1, 1, 0, f_undofile},
{"undofile", 1, 1, FEARG_1, f_undofile},
{"undotree", 0, 0, 0, f_undotree},
{"uniq", 1, 3, FEARG_1, f_uniq},
{"values", 1, 1, FEARG_1, f_values},
{"virtcol", 1, 1, 0, f_virtcol},
{"virtcol", 1, 1, FEARG_1, f_virtcol},
{"visualmode", 0, 1, 0, f_visualmode},
{"wildmenumode", 0, 0, 0, f_wildmenumode},
{"win_execute", 2, 3, 0, f_win_execute},
{"win_findbuf", 1, 1, 0, f_win_findbuf},
{"win_getid", 0, 2, 0, f_win_getid},
{"win_gotoid", 1, 1, 0, f_win_gotoid},
{"win_id2tabwin", 1, 1, 0, f_win_id2tabwin},
{"win_id2win", 1, 1, 0, f_win_id2win},
{"win_screenpos", 1, 1, 0, f_win_screenpos},
{"win_execute", 2, 3, FEARG_2, f_win_execute},
{"win_findbuf", 1, 1, FEARG_1, f_win_findbuf},
{"win_getid", 0, 2, FEARG_1, f_win_getid},
{"win_gotoid", 1, 1, FEARG_1, f_win_gotoid},
{"win_id2tabwin", 1, 1, FEARG_1, f_win_id2tabwin},
{"win_id2win", 1, 1, FEARG_1, f_win_id2win},
{"win_screenpos", 1, 1, FEARG_1, f_win_screenpos},
{"winbufnr", 1, 1, FEARG_1, f_winbufnr},
{"wincol", 0, 0, 0, f_wincol},
{"winheight", 1, 1, 0, f_winheight},
{"winlayout", 0, 1, 0, f_winlayout},
{"winheight", 1, 1, FEARG_1, f_winheight},
{"winlayout", 0, 1, FEARG_1, f_winlayout},
{"winline", 0, 0, 0, f_winline},
{"winnr", 0, 1, 0, f_winnr},
{"winnr", 0, 1, FEARG_1, f_winnr},
{"winrestcmd", 0, 0, 0, f_winrestcmd},
{"winrestview", 1, 1, 0, f_winrestview},
{"winrestview", 1, 1, FEARG_1, f_winrestview},
{"winsaveview", 0, 0, 0, f_winsaveview},
{"winwidth", 1, 1, 0, f_winwidth},
{"winwidth", 1, 1, FEARG_1, f_winwidth},
{"wordcount", 0, 0, 0, f_wordcount},
{"writefile", 2, 3, 0, f_writefile},
{"writefile", 2, 3, FEARG_1, f_writefile},
{"xor", 2, 2, FEARG_1, f_xor},
};