mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
patch 8.2.1390: Vim9: type error after storing an option value
Problem: Vim9: type error after storing an option value. Solution: Drop the type after a STOREOPT instruction. (closes #6632)
This commit is contained in:
@@ -1336,7 +1336,7 @@ generate_STOREOPT(cctx_T *cctx, char_u *name, int opt_flags)
|
||||
isn_T *isn;
|
||||
|
||||
RETURN_OK_IF_SKIP(cctx);
|
||||
if ((isn = generate_instr(cctx, ISN_STOREOPT)) == NULL)
|
||||
if ((isn = generate_instr_drop(cctx, ISN_STOREOPT, 1)) == NULL)
|
||||
return FAIL;
|
||||
isn->isn_arg.storeopt.so_name = vim_strsave(name);
|
||||
isn->isn_arg.storeopt.so_flags = opt_flags;
|
||||
|
Reference in New Issue
Block a user