summaryrefslogtreecommitdiffstats
path: root/src/evalfunc.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-06-01 14:14:44 +0200
committerBram Moolenaar <Bram@vim.org>2020-06-01 14:14:44 +0200
commitf17e7ea67a798d0aa45ce24ea80c9e21d5164326 (patch)
tree6ee60025d1c4aa335d760d81fa211da0ed742eed /src/evalfunc.c
parentad772a63ec3bc86fe9d53cba783812f53470a313 (diff)
patch 8.2.0871: cannot use getmarklist() as a methodv8.2.0871
Problem: Cannot use getmarklist() as a method. Solution: Make getmarklist() work as a method. Add one to the column number to match getpos(). (Yegappan Lakshmanan, closes #6176)
Diffstat (limited to 'src/evalfunc.c')
-rw-r--r--src/evalfunc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/evalfunc.c b/src/evalfunc.c
index 92d6c06671..92cd4a44f7 100644
--- a/src/evalfunc.c
+++ b/src/evalfunc.c
@@ -579,7 +579,7 @@ static funcentry_T global_functions[] =
{"getjumplist", 0, 2, FEARG_1, ret_list_any, f_getjumplist},
{"getline", 1, 2, FEARG_1, ret_f_getline, f_getline},
{"getloclist", 1, 2, 0, ret_list_dict_any, f_getloclist},
- {"getmarklist", 0, 1, 0, ret_list_dict_any, f_getmarklist},
+ {"getmarklist", 0, 1, FEARG_1, ret_list_dict_any, f_getmarklist},
{"getmatches", 0, 1, 0, ret_list_dict_any, f_getmatches},
{"getmousepos", 0, 0, 0, ret_dict_number, f_getmousepos},
{"getpid", 0, 0, 0, ret_number, f_getpid},