comparison src/vim9compile.c @ 21681:877321650f7f v8.2.1390

patch 8.2.1390: Vim9: type error after storing an option value Commit: https://github.com/vim/vim/commit/1c199f9c70446933677d5210f34d2b86eefa2a43 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Aug 7 21:28:34 2020 +0200 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 https://github.com/vim/vim/issues/6632)
author Bram Moolenaar <Bram@vim.org>
date Fri, 07 Aug 2020 21:30:03 +0200
parents 84d38f98e5de
children bb4f55d20951
comparison
equal deleted inserted replaced
21680:943cdd108b70 21681:877321650f7f
1334 generate_STOREOPT(cctx_T *cctx, char_u *name, int opt_flags) 1334 generate_STOREOPT(cctx_T *cctx, char_u *name, int opt_flags)
1335 { 1335 {
1336 isn_T *isn; 1336 isn_T *isn;
1337 1337
1338 RETURN_OK_IF_SKIP(cctx); 1338 RETURN_OK_IF_SKIP(cctx);
1339 if ((isn = generate_instr(cctx, ISN_STOREOPT)) == NULL) 1339 if ((isn = generate_instr_drop(cctx, ISN_STOREOPT, 1)) == NULL)
1340 return FAIL; 1340 return FAIL;
1341 isn->isn_arg.storeopt.so_name = vim_strsave(name); 1341 isn->isn_arg.storeopt.so_name = vim_strsave(name);
1342 isn->isn_arg.storeopt.so_flags = opt_flags; 1342 isn->isn_arg.storeopt.so_flags = opt_flags;
1343 1343
1344 return OK; 1344 return OK;