On Tue, Feb 13, 2018 at 6:59 AM, lacygoill <vim-dev-git...@256bit.org> wrote:
> Sorry I was wrong getjumplist() is not supposed to be passed the string '%'.
> It expects a window number.
> As for getchangelist(), I don't know what is the best choice. I guess
> whatever is the most consistent with other functions.
Can you try the attached patch which modifies getchangelist() to accept
buffer number similar to the bufname() function?
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
You received this message because you are subscribed to the Google Groups
To unsubscribe from this group and stop receiving emails from it, send an email
For more options, visit https://groups.google.com/d/optout.
diff --git a/src/evalfunc.c b/src/evalfunc.c
index daef9a8c9..57929d6d7 100644
@@ -4365,7 +4365,10 @@ f_getchangelist(typval_T *argvars, typval_T *rettv)
- buf = find_buffer(&argvars);
+ (void)get_tv_number(&argvars); /* issue errmsg if type error */
+ buf = get_buf_tv(&argvars, FALSE);
if (buf == NULL)