mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
patch 8.2.0355: Vim9: str_val is confusing, it's a number
Problem: Vim9: str_val is confusing, it's a number Solution: Rename to stnr_val.
This commit is contained in:
@@ -773,8 +773,8 @@ generate_STORENR(cctx_T *cctx, int idx, varnumber_T value)
|
||||
RETURN_OK_IF_SKIP(cctx);
|
||||
if ((isn = generate_instr(cctx, ISN_STORENR)) == NULL)
|
||||
return FAIL;
|
||||
isn->isn_arg.storenr.str_idx = idx;
|
||||
isn->isn_arg.storenr.str_val = value;
|
||||
isn->isn_arg.storenr.stnr_idx = idx;
|
||||
isn->isn_arg.storenr.stnr_val = value;
|
||||
|
||||
return OK;
|
||||
}
|
||||
@@ -3789,8 +3789,8 @@ compile_assignment(char_u *arg, exarg_T *eap, cmdidx_T cmdidx, cctx_T *cctx)
|
||||
garray_T *stack = &cctx->ctx_type_stack;
|
||||
|
||||
isn->isn_type = ISN_STORENR;
|
||||
isn->isn_arg.storenr.str_idx = idx;
|
||||
isn->isn_arg.storenr.str_val = val;
|
||||
isn->isn_arg.storenr.stnr_idx = idx;
|
||||
isn->isn_arg.storenr.stnr_val = val;
|
||||
if (stack->ga_len > 0)
|
||||
--stack->ga_len;
|
||||
}
|
||||
|
Reference in New Issue
Block a user