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