1
0
forked from aniani/vim

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 #8396)
This commit is contained in:
Bram Moolenaar
2021-06-17 21:03:07 +02:00
parent 6e9695525e
commit 74f4a965bc
5 changed files with 33 additions and 5 deletions

View File

@@ -2182,8 +2182,7 @@ exec_instructions(ectx_T *ectx)
--ectx->ec_stack.ga_len;
tv = STACK_TV_BOT(0);
write_reg_contents(reg == '@' ? '"' : reg,
tv_get_string(tv), -1, FALSE);
write_reg_contents(reg, tv_get_string(tv), -1, FALSE);
clear_tv(tv);
}
break;