0
0
mirror of https://github.com/vim/vim.git synced 2025-09-29 04:34:16 -04:00

patch 8.2.0871: cannot use getmarklist() as a method

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)
This commit is contained in:
Bram Moolenaar
2020-06-01 14:14:44 +02:00
parent ad772a63ec
commit f17e7ea67a
5 changed files with 13 additions and 9 deletions

View File

@@ -1442,7 +1442,7 @@ add_mark(list_T *l, char_u *mname, pos_T *pos, int bufnr, char_u *fname)
list_append_number(lpos, bufnr);
list_append_number(lpos, pos->lnum);
list_append_number(lpos, pos->col);
list_append_number(lpos, pos->col + 1);
list_append_number(lpos, pos->coladd);
if (dict_add_string(d, "mark", mname) == FAIL