0
0
mirror of https://github.com/vim/vim.git synced 2025-10-13 06:54:15 -04:00

patch 8.0.1519: getchangelist() does not use argument as bufname()

Problem:    Getchangelist() does not use argument as bufname().
Solution:   Use get_buf_tv(). (Yegappan Lakshmanan, closes #2641)
This commit is contained in:
Bram Moolenaar
2018-02-13 19:21:17 +01:00
parent 2be5733152
commit 341a64c9ca
3 changed files with 9 additions and 4 deletions

View File

@@ -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;