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

patch 8.2.1357: Vim9: cannot assign to / register

Problem:    Vim9: cannot assign to / register.
Solution:   Adjust check for assignment.
This commit is contained in:
Bram Moolenaar
2020-08-02 18:58:54 +02:00
parent 7226e5b19b
commit 658217276f
4 changed files with 24 additions and 6 deletions

View File

@@ -1439,6 +1439,13 @@ def Test_expr7_register()
normal axyz
assert_equal("xyz", @.)
call CheckDefFailure(["@. = 'yes'"], 'E354:')
@/ = 'slash'
assert_equal('slash', @/)
@= = 'equal'
assert_equal('equal', @=)
enddef
def Test_expr7_namespace()