Hi,
On Tue, Feb 13, 2018 at 6:59 AM, lacygoill <[email protected]> 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?
Thanks,
Yegappan
--
--
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
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.
diff --git a/src/evalfunc.c b/src/evalfunc.c
index daef9a8c9..57929d6d7 100644
--- a/src/evalfunc.c
+++ b/src/evalfunc.c
@@ -4365,7 +4365,10 @@ f_getchangelist(typval_T *argvars, typval_T *rettv)
return;
#ifdef FEAT_JUMPLIST
- buf = find_buffer(&argvars[0]);
+ (void)get_tv_number(&argvars[0]); /* issue errmsg if type error */
+ ++emsg_off;
+ buf = get_buf_tv(&argvars[0], FALSE);
+ --emsg_off;
if (buf == NULL)
return;