1
0
forked from aniani/vim

patch 8.2.1356: Vim9: cannot get the percent register

Problem:    Vim9: cannot get the percent register.
Solution:   Check for readable registers instead of writable. (closes #6566)
This commit is contained in:
Bram Moolenaar
2020-08-02 17:33:26 +02:00
parent c2ee44cc38
commit 7226e5b19b
3 changed files with 12 additions and 1 deletions

View File

@@ -3565,7 +3565,7 @@ compile_get_register(char_u **arg, cctx_T *cctx)
semsg(_(e_syntax_at), *arg - 1);
return FAIL;
}
if (!valid_yank_reg(**arg, TRUE))
if (!valid_yank_reg(**arg, FALSE))
{
emsg_invreg(**arg);
return FAIL;