diff src/evalfunc.c @ 21381:95e6fb6a5c86 v8.2.1241

patch 8.2.1241: cannot use getbufinfo() as a method Commit: https://github.com/vim/vim/commit/6434fc574dfbde11461e70e5a62712370edf38e6 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jul 18 22:24:22 2020 +0200 patch 8.2.1241: cannot use getbufinfo() as a method Problem: Cannot use getbufinfo() as a method. Solution: Support using getbufinfo() as a method. (closes https://github.com/vim/vim/issues/6458)
author Bram Moolenaar <Bram@vim.org>
date Sat, 18 Jul 2020 22:30:04 +0200
parents 1689128baf4a
children 16bc2bd050e0
line wrap: on
line diff
--- a/src/evalfunc.c
+++ b/src/evalfunc.c
@@ -611,7 +611,7 @@ static funcentry_T global_functions[] =
     {"function",	1, 3, FEARG_1,	  ret_f_function, f_function},
     {"garbagecollect",	0, 1, 0,	  ret_void,	f_garbagecollect},
     {"get",		2, 3, FEARG_1,	  ret_any,	f_get},
-    {"getbufinfo",	0, 1, 0,	  ret_list_dict_any, f_getbufinfo},
+    {"getbufinfo",	0, 1, FEARG_1,	  ret_list_dict_any, f_getbufinfo},
     {"getbufline",	2, 3, FEARG_1,	  ret_list_string, f_getbufline},
     {"getbufvar",	2, 3, FEARG_1,	  ret_any,	f_getbufvar},
     {"getchangelist",	0, 1, FEARG_1,	  ret_list_any,	f_getchangelist},