diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-12-06 15:48:16 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-06 15:48:16 +0800 |
commit | 401ce9f3fdebed05a929de1b94e55c74d45e2ffb (patch) | |
tree | ef20e74712e0e0c97ec81d214e518e1ebe7839b9 /src/nvim/shada.c | |
parent | e718866358652020e57fdb43bd9322f0c5732432 (diff) | |
download | rneovim-401ce9f3fdebed05a929de1b94e55c74d45e2ffb.tar.gz rneovim-401ce9f3fdebed05a929de1b94e55c74d45e2ffb.tar.bz2 rneovim-401ce9f3fdebed05a929de1b94e55c74d45e2ffb.zip |
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.
https://github.com/vim/vim/commit/7be3ab25891fec711d8a2d9d242711a9155852b6
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>
Diffstat (limited to 'src/nvim/shada.c')
-rw-r--r-- | src/nvim/shada.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/shada.c b/src/nvim/shada.c index 819fbcf885..02e7c3cc68 100644 --- a/src/nvim/shada.c +++ b/src/nvim/shada.c @@ -2604,7 +2604,7 @@ static ShaDaWriteResult shada_write(ShaDaWriteDef *const sd_writer, ShaDaReadDef case VAR_LIST: { list_T *l = vartv.vval.v_list; int copyID = get_copyID(); - if (!set_ref_in_list(l, copyID, NULL) + if (!set_ref_in_list_items(l, copyID, NULL) && copyID == l->lv_copyID) { tv_clear(&vartv); continue; |