mirror of
https://github.com/neovim/neovim.git
synced 2025-11-16 15:21:20 +00:00
vim-patch:8.1.1583: set_ref_in_list() only sets ref in items (#26418)
Problem: Set_ref_in_list() only sets ref in items.
Solution: Rename to set_ref_in_list_items() to avoid confusion.
7be3ab2589
Omit set_ref_in_list() and set_ref_in_dict(): only used in popup window,
if_pyth and if_lua.
Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
@@ -3818,7 +3818,7 @@ bool set_ref_in_previous_funccal(int copyID)
|
||||
fc->fc_copyID = copyID + 1;
|
||||
if (set_ref_in_ht(&fc->fc_l_vars.dv_hashtab, copyID + 1, NULL)
|
||||
|| set_ref_in_ht(&fc->fc_l_avars.dv_hashtab, copyID + 1, NULL)
|
||||
|| set_ref_in_list(&fc->fc_l_varlist, copyID + 1, NULL)) {
|
||||
|| set_ref_in_list_items(&fc->fc_l_varlist, copyID + 1, NULL)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -3831,7 +3831,7 @@ static bool set_ref_in_funccal(funccall_T *fc, int copyID)
|
||||
fc->fc_copyID = copyID;
|
||||
if (set_ref_in_ht(&fc->fc_l_vars.dv_hashtab, copyID, NULL)
|
||||
|| set_ref_in_ht(&fc->fc_l_avars.dv_hashtab, copyID, NULL)
|
||||
|| set_ref_in_list(&fc->fc_l_varlist, copyID, NULL)
|
||||
|| set_ref_in_list_items(&fc->fc_l_varlist, copyID, NULL)
|
||||
|| set_ref_in_func(NULL, fc->fc_func, copyID)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user