diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-09-06 21:34:30 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-09-06 21:34:30 +0200 |
commit | 196b4664432f932625cfb6371dc42c24efe6c203 (patch) | |
tree | 95294d46aa15e3fccbee2422f352b46958d9f593 /src/evalfunc.c | |
parent | 16b58ae9f36e9675c34d942f5d5f8c8a7914dbc4 (diff) |
patch 8.1.1993: more functions can be used as methodsv8.1.1993
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 | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/src/evalfunc.c b/src/evalfunc.c index c790913b3f..f302df773a 100644 --- a/src/evalfunc.c +++ b/src/evalfunc.c @@ -700,27 +700,27 @@ static funcentry_T global_functions[] = #ifdef FEAT_RUBY {"rubyeval", 1, 1, FEARG_1, f_rubyeval}, #endif - {"screenattr", 2, 2, 0, f_screenattr}, - {"screenchar", 2, 2, 0, f_screenchar}, - {"screenchars", 2, 2, 0, f_screenchars}, + {"screenattr", 2, 2, FEARG_1, f_screenattr}, + {"screenchar", 2, 2, FEARG_1, f_screenchar}, + {"screenchars", 2, 2, FEARG_1, f_screenchars}, {"screencol", 0, 0, 0, f_screencol}, - {"screenpos", 3, 3, 0, f_screenpos}, + {"screenpos", 3, 3, FEARG_1, f_screenpos}, {"screenrow", 0, 0, 0, f_screenrow}, - {"screenstring", 2, 2, 0, f_screenstring}, - {"search", 1, 4, 0, f_search}, - {"searchdecl", 1, 3, 0, f_searchdecl}, + {"screenstring", 2, 2, FEARG_1, f_screenstring}, + {"search", 1, 4, FEARG_1, f_search}, + {"searchdecl", 1, 3, FEARG_1, f_searchdecl}, {"searchpair", 3, 7, 0, f_searchpair}, {"searchpairpos", 3, 7, 0, f_searchpairpos}, - {"searchpos", 1, 4, 0, f_searchpos}, - {"server2client", 2, 2, 0, f_server2client}, + {"searchpos", 1, 4, FEARG_1, f_searchpos}, + {"server2client", 2, 2, FEARG_1, f_server2client}, {"serverlist", 0, 0, 0, f_serverlist}, - {"setbufline", 3, 3, 0, f_setbufline}, - {"setbufvar", 3, 3, 0, f_setbufvar}, - {"setcharsearch", 1, 1, 0, f_setcharsearch}, - {"setcmdpos", 1, 1, 0, f_setcmdpos}, - {"setenv", 2, 2, 0, f_setenv}, + {"setbufline", 3, 3, FEARG_3, f_setbufline}, + {"setbufvar", 3, 3, FEARG_3, f_setbufvar}, + {"setcharsearch", 1, 1, FEARG_1, f_setcharsearch}, + {"setcmdpos", 1, 1, FEARG_1, f_setcmdpos}, + {"setenv", 2, 2, FEARG_2, f_setenv}, {"setfperm", 2, 2, FEARG_1, f_setfperm}, - {"setline", 2, 2, 0, f_setline}, + {"setline", 2, 2, FEARG_2, f_setline}, {"setloclist", 2, 4, 0, f_setloclist}, {"setmatches", 1, 2, 0, f_setmatches}, {"setpos", 2, 2, 0, f_setpos}, |