0
0
mirror of https://github.com/vim/vim.git synced 2025-10-02 05:04:20 -04:00

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

@@ -1430,6 +1430,15 @@ enddef
def Test_expr7_register()
@a = 'register a'
assert_equal('register a', @a)
let fname = expand('%')
assert_equal(fname, @%)
feedkeys(":echo 'some'\<CR>", "xt")
assert_equal("echo 'some'", @:)
normal axyz
assert_equal("xyz", @.)
enddef
def Test_expr7_namespace()