Mercurial > vim
comparison src/evalfunc.c @ 13290:3f3d9ed211b2 v8.0.1519
patch 8.0.1519: getchangelist() does not use argument as bufname()
commit https://github.com/vim/vim/commit/341a64c9cabff08e4a7dc8cd932a598e12134457
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Feb 13 19:21:17 2018 +0100
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 https://github.com/vim/vim/issues/2641)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 13 Feb 2018 19:30:06 +0100 |
parents | fbda23eb0996 |
children | a88c5e12b860 |
comparison
equal
deleted
inserted
replaced
13289:36644af1322f | 13290:3f3d9ed211b2 |
---|---|
4363 | 4363 |
4364 if (rettv_list_alloc(rettv) != OK) | 4364 if (rettv_list_alloc(rettv) != OK) |
4365 return; | 4365 return; |
4366 | 4366 |
4367 #ifdef FEAT_JUMPLIST | 4367 #ifdef FEAT_JUMPLIST |
4368 buf = find_buffer(&argvars[0]); | 4368 (void)get_tv_number(&argvars[0]); /* issue errmsg if type error */ |
4369 ++emsg_off; | |
4370 buf = get_buf_tv(&argvars[0], FALSE); | |
4371 --emsg_off; | |
4369 if (buf == NULL) | 4372 if (buf == NULL) |
4370 return; | 4373 return; |
4371 | 4374 |
4372 l = list_alloc(); | 4375 l = list_alloc(); |
4373 if (l == NULL) | 4376 if (l == NULL) |