Mercurial > vim
diff src/userfunc.c @ 17168:1d30eb64a7a2 v8.1.1583
patch 8.1.1583: set_ref_in_list() only sets ref in items
commit https://github.com/vim/vim/commit/7be3ab25891fec711d8a2d9d242711a9155852b6
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jun 23 01:46:15 2019 +0200
patch 8.1.1583: set_ref_in_list() only sets ref in items
Problem: Set_ref_in_list() only sets ref in items.
Solution: Rename to set_ref_in_list_items() to avoid confusion.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 23 Jun 2019 02:00:06 +0200 |
parents | ebe9aab81898 |
children | 40c4cb095d53 |
line wrap: on
line diff
--- a/src/userfunc.c +++ b/src/userfunc.c @@ -4000,7 +4000,7 @@ set_ref_in_previous_funccal(int copyID) abort = abort || set_ref_in_ht(&fc->l_vars.dv_hashtab, copyID + 1, NULL) || set_ref_in_ht(&fc->l_avars.dv_hashtab, copyID + 1, NULL) - || set_ref_in_list(&fc->l_varlist, copyID + 1, NULL); + || set_ref_in_list_items(&fc->l_varlist, copyID + 1, NULL); } return abort; } @@ -4016,7 +4016,7 @@ set_ref_in_funccal(funccall_T *fc, int c abort = abort || set_ref_in_ht(&fc->l_vars.dv_hashtab, copyID, NULL) || set_ref_in_ht(&fc->l_avars.dv_hashtab, copyID, NULL) - || set_ref_in_list(&fc->l_varlist, copyID, NULL) + || set_ref_in_list_items(&fc->l_varlist, copyID, NULL) || set_ref_in_func(NULL, fc->func, copyID); } return abort;