diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-09-08 21:51:41 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-09-08 21:51:41 +0200 |
commit | f92e58cadb03156879e9bdbf6341bf662d9c87cc (patch) | |
tree | 13bdd750b1d0c9db7f2267d2300eba24f6560619 /src/evalfunc.c | |
parent | 7ee80f766130f22598c928415c92ec612a8f18cf (diff) |
patch 8.1.2013: more functions can be used as methodsv8.1.2013
Problem: More functions can be used as methods.
Solution: Make various functions usable as a method.
Diffstat (limited to 'src/evalfunc.c')
-rw-r--r-- | src/evalfunc.c | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/src/evalfunc.c b/src/evalfunc.c index 7c53b00584..dafd3b6af2 100644 --- a/src/evalfunc.c +++ b/src/evalfunc.c @@ -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}, }; |