Mercurial > vim
comparison src/vim9execute.c @ 24956:d0b6a8d82cef v8.2.3015
patch 8.2.3015: Vim9: Assigning to @# requires a string
Commit: https://github.com/vim/vim/commit/74f4a965bc6e2a9c41cce2f644e861168702922f
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Jun 17 21:03:07 2021 +0200
patch 8.2.3015: Vim9: Assigning to @# requires a string
Problem: Vim9: Assigning to @# requires a string. (Naohiro Ono)
Solution: Accent a number or a string. (closes https://github.com/vim/vim/issues/8396)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 17 Jun 2021 21:15:03 +0200 |
parents | 9b7fac4c70a0 |
children | 64b70a958f19 |
comparison
equal
deleted
inserted
replaced
24955:04373d30ea32 | 24956:d0b6a8d82cef |
---|---|
2180 { | 2180 { |
2181 int reg = iptr->isn_arg.number; | 2181 int reg = iptr->isn_arg.number; |
2182 | 2182 |
2183 --ectx->ec_stack.ga_len; | 2183 --ectx->ec_stack.ga_len; |
2184 tv = STACK_TV_BOT(0); | 2184 tv = STACK_TV_BOT(0); |
2185 write_reg_contents(reg == '@' ? '"' : reg, | 2185 write_reg_contents(reg, tv_get_string(tv), -1, FALSE); |
2186 tv_get_string(tv), -1, FALSE); | |
2187 clear_tv(tv); | 2186 clear_tv(tv); |
2188 } | 2187 } |
2189 break; | 2188 break; |
2190 | 2189 |
2191 // store v: variable | 2190 // store v: variable |