mirror of
https://github.com/neovim/neovim.git
synced 2025-10-05 17:36:29 +00:00
shada: fix write E5004 error on exit
Fix the problem of failing to write shada when the global variable contains Funcref or Partial.
This commit is contained in:
@@ -2676,6 +2676,13 @@ static ShaDaWriteResult shada_write(ShaDaWriteDef *const sd_writer,
|
||||
if (name == NULL) {
|
||||
break;
|
||||
}
|
||||
switch (vartv.v_type) {
|
||||
case VAR_FUNC:
|
||||
case VAR_PARTIAL:
|
||||
continue;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
typval_T tgttv;
|
||||
tv_copy(&vartv, &tgttv);
|
||||
ShaDaWriteResult spe_ret;
|
||||
|
Reference in New Issue
Block a user