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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user